Class: Moneta::SDBM

Inherits:
BasicSDBM show all
Includes:
Expires
Defined in:
lib/moneta/sdbm.rb

Instance Method Summary collapse

Methods included from Expires

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

Methods inherited from BasicSDBM

#[], #[]=, #delete

Methods included from Defaults

#fetch, #store

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(options = {})
  raise "No :file option specified" unless file = options[:file]
  @expiration = BasicSDBM.new("#{file}_expires")
  super(file)
end