Class: Moneta::Rufus
- Inherits:
-
BasicRufus
- Object
- Rufus::Tokyo::Cabinet
- BasicRufus
- Moneta::Rufus
- Includes:
- Expires
- Defined in:
- lib/moneta/rufus.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Rufus
constructor
A new instance of Rufus.
Methods included from Expires
#[], #check_expired, #delete, #fetch, #key?, #store, #update_key
Methods inherited from BasicRufus
Methods included from Defaults
Constructor Details
#initialize(options = {}) ⇒ Rufus
Returns a new instance of Rufus.
35 36 37 38 39 |
# File 'lib/moneta/rufus.rb', line 35 def initialize( = {}) file = [:file] @expiration = BasicRufus.new(:file => "#{file}_expires") super end |