Sha256: cb8ce4afd94ce4ec3d2621f414152ff167a555f7670363122999bfccbcd25ae9
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
require "riak" require "rico/object" require "rico/array" require "rico/list" require "rico/set" require "rico/sorted_set" require "rico/value" require "rico/version" module Rico def self.configure yield self if block_given? end def self.bucket(key) namespaced_key = [@namespace, key].flatten.select(&:present?).join(":") @bucket_cache ||= {} @bucket_cache[namespaced_key] ||= riak.bucket(namespaced_key) end def self.namespace @namespace end def self.namespace=(namespace) @namespace = namespace end def self.riak @riak ||= Riak::Client.new end def self.riak=(riak) @riak = riak end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rico-0.0.1 | lib/rico.rb |