def put(key, value, options = {})
      @options = options
      custom_params = []
      custom_params << use_cas(@options)
      custom_params << dc(@options)
      custom_params << acquire(@options)
      @raw = send_put_request(@conn, ["/v1/kv/#{key}"], options, value, custom_params,
                              'application/x-www-form-urlencoded')
      if @raw.body.chomp == 'true'
        @key = key
        @value = value
      end
      @raw.body.chomp == 'true'
    end
def put(key, value, options = {})
      @options = options
      custom_params = []
      custom_params << use_cas(@options)
      custom_params << dc(@options)
      custom_params << acquire(@options)
      @raw = send_put_request(@conn, ["/v1/kv/#{key}"], options, value, custom_params,
                              'application/x-www-form-urlencoded')
      if @raw.body.chomp == 'true'
        @key = key
        @value = value
      end
      @raw.body.chomp == 'true'
    end
rubocop:enable PerceivedComplexity, LineLength, MethodLength, CyclomaticComplexity
 Associate a value with a key
 @param key [String] the key
 @param value [String] the value
 @param options [Hash] the query params
 @option options [Integer] :cas The modify index
 @option options [String] :dc Target datacenter
 @option options [String] :acquire Session to attach to key
 @return [Bool] Success or failure of the write (can fail in c-a-s mode)