Parent

Methods

Moneta::Berkeley

Public Class Methods

new(options={}) click to toggle source
# File lib/moneta/berkeley.rb, line 13
def initialize(options={})
  file = @file = options[:file]
  @db = Bdb::Db.new()
  @db.open(nil, file, nil, Bdb::Db::BTREE, Bdb::DB_CREATE, 0)
  unless options[:skip_expires]
    @expiration = Moneta::Berkeley.new(:file => "#{file}_expiration", :skip_expires => true )
    self.extend(StringExpires)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.