Class: Moneta::Monetas

Inherits:
Object
  • Object
show all
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

Methods included from Expiration

#update_key

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(options = {})
  @caches = options[:stores] || raise("You must provide the :stores options")
end