Method: CouchbaseModelLogging::Logger#set

Defined in:
lib/couchbase_model_logging/logger.rb

#set(key, hashes) ⇒ Object



40
41
42
43
44
# File 'lib/couchbase_model_logging/logger.rb', line 40

def set(key, hashes)
  yaml     = hashes.map { |hash| encode hash }.join("")
  pref_key = prefixed_key_for key
  client.set pref_key, yaml, :format => :plain
end