Class Moneta::Pool
In: lib/moneta/pool.rb
Parent: Wrapper

Creates a pool of stores. Each thread gets its own store.

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

  Moneta.build do
    use(:Pool) do
      # Every thread gets its own instance
      adapter :MemcachedNative
    end
  end

@api public

Methods

adapter   close   new   pop   wrap  

Public Class methods

@param [Moneta store] adapter The underlying store @param [Hash] options @option options [String] :mutex (::Mutex.new) Mutex object

Public Instance methods

Protected Instance methods

[Validate]