Class Moneta::Stack
In: lib/moneta/stack.rb
Parent: Object

Combines multiple stores. Reads return the result from the first store, writes go to all stores.

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

  Moneta.build do
    use(:Stack) do
      add { adapter :Redis }
      add { adapter :File, :dir => 'data' }
      add { adapter :File, :dir => 'replicate' }
    end
  end

@api public

Methods

clear   close   create   delete   features   increment   key?   load   new   store  

Included Modules

Defaults

Classes and Modules

Class Moneta::Stack::DSL

Attributes

stack  [R] 

Public Class methods

@param [Hash] options Options hash @option options [Array] :stack Array of Moneta stores @yieldparam Builder block

Public Instance methods

(see Proxy#key?)

[Validate]