module Riak

The Riak module contains all aspects of the client interface to Riak.

Constants

VERSION

Attributes

disable_list_keys_warnings[RW]

Only change this if you really know what you're doing. Better to err on the side of caution and assume you don't. @private

escaper[R]

@see escaper=

json_options[RW]

Options that will be passed to the JSON parser and encoder. Defaults to `{:max_nesting => 20}`

logger[RW]

Set a custom logger object (e.g. Riak.logger = Rails.logger)

url_decoding[RW]

In Riak 1.0+, buckets and keys are decoded internally before being stored. This increases compatibility with the Protocol Buffers transport and reduces inconsistency of link-walking vs. regular operations. If the node you are connecting to has set `{http_url_encoding, on}`, set this to true. Default is false. @return [true,false] Whether Riak decodes URL-encoded paths and headers

Public Class Methods

escaper=(esc) click to toggle source

Sets the class used for escaping URLs (buckets and keys) sent to Riak. Currently only supports URI and CGI, and defaults to URI. @param [Symbol,String,Class] esc A representation of which

escaping class to use, either the Class itself or a String or
Symbol name

@see Riak::Util::Escape

# File lib/riak/util/escape.rb, line 15
def escaper=(esc)
  case esc
  when Symbol, String
    @escaper = ::Object.const_get(esc.to_s.upcase.intern) if esc.to_s =~ /uri|cgi/i
  when Class, Module
    @escaper = esc
  end
end