Class Moneta::Cache
In: lib/moneta/cache.rb
Parent: Object

Combines two stores. One is used as cache, the other as backend adapter.

@example Add `Moneta::Cache` to proxy stack

  Moneta.build do
    use(:Cache) do
     adapter { adapter :File, :dir => 'data' }
     cache { adapter :Memory }
    end
  end

@api public

Methods

clear   close   create   delete   features   increment   key?   load   new   store  

Included Modules

Defaults

Classes and Modules

Class Moneta::Cache::DSL

Attributes

adapter  [RW] 
cache  [RW] 

Public Class methods

@param [Hash] options Options hash @option options [Moneta store] :cache Moneta store used as cache @option options [Moneta store] :adapter Moneta store used as adapter @yieldparam Builder block

Public Instance methods

(see Proxy#key?)

[Validate]