Class Moneta::Adapters::Couch
In: lib/moneta/adapters/couch.rb
Parent: Object

CouchDB backend

You can store hashes directly using this adapter.

@example Store hashes

    db = Moneta::Adapters::Mongo.new
    db['key'] = {a: 1, b: 2}

@api public

Methods

clear   create   delete   key?   load   new   store  

Included Modules

Defaults

Attributes

backend  [R] 

Public Class methods

@param [Hash] options @option options [String] :host (‘127.0.0.1’) Couch host @option options [String] :port (5984) Couch port @option options [String] :db (‘moneta’) Couch database @option options [String] :value_field (‘value’) Document field to store value @option options [String] :type_field (‘type’) Document field to store value type @option options [Faraday connection] :backend Use existing backend instance

Public Instance methods

(see Proxy#key?)

[Validate]