Class: Moneta::Rufus

Inherits:
BasicRufus
  • Object
show all
Includes:
Expires
Defined in:
lib/moneta/rufus.rb

Instance Method Summary collapse

Methods included from Expires

#[], #check_expired, #delete, #fetch, #key?, #store, #update_key

Methods inherited from BasicRufus

#[], #[]=, #key?

Methods included from Defaults

#fetch, #store

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(options = {})
  file = options[:file]
  @expiration = BasicRufus.new(:file => "#{file}_expires")
  super
end