Class: Moneta::SDBM
- Includes:
- Expires
- Defined in:
- lib/moneta/sdbm.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SDBM
constructor
A new instance of SDBM.
Methods included from Expires
#[], #check_expired, #delete, #fetch, #key?, #store, #update_key
Methods inherited from BasicSDBM
Methods included from Defaults
Constructor Details
#initialize(options = {}) ⇒ SDBM
Returns a new instance of SDBM.
27 28 29 30 31 |
# File 'lib/moneta/sdbm.rb', line 27 def initialize( = {}) raise "No :file option specified" unless file = [:file] @expiration = BasicSDBM.new("#{file}_expires") super(file) end |