Class: Moneta::Pool
Overview
Creates a pool of stores. Each thread gets its own store.
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Pool
constructor
A new instance of Pool.
Methods inherited from Wrapper
#clear, #close, #create, #delete, #features, #increment, #key?, #load, #store
Methods inherited from Proxy
#clear, #close, #create, #delete, #features, #increment, #key?, #load, #store
Methods included from Defaults
#[], #[]=, #close, #create, #decrement, #features, #fetch, included, #increment, #key?, #supports?
Methods included from OptionSupport
#expires, #prefix, #raw, #with
Constructor Details
#initialize(options = {}, &block) ⇒ Pool
Returns a new instance of Pool.
17 18 19 20 21 |
# File 'lib/moneta/pool.rb', line 17 def initialize( = {}, &block) super(nil) @builder = Builder.new(&block) @pool, @active = [], {} end |