Class: Moneta::Monetas
- Inherits:
-
Object
- Object
- Moneta::Monetas
- Includes:
- Expiration, Implementation
- Defined in:
- lib/moneta/monetas.rb
Overview
A meta-store that is backed by one or more Moneta stores. Read operations select a random store, write operations write to all stores.
Defined Under Namespace
Modules: Expiration, Implementation
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Monetas
constructor
A new instance of Monetas.
Methods included from Expiration
Methods included from Implementation
#[], #[]=, #clear, #delete, #fetch, #has_key?, #key?, #store
Constructor Details
#initialize(options = {}) ⇒ Monetas
Returns a new instance of Monetas.
5 6 7 |
# File 'lib/moneta/monetas.rb', line 5 def initialize( = {}) @caches = [:stores] || raise("You must provide the :stores options") end |