Class: SBDB::Queue
Constant Summary
Constants inherited from DB
DB::ARRAY, DB::BTREE, DB::CONSUME, DB::CONSUME_WAIT, DB::HASH, DB::QUEUE, DB::RDONLY, DB::UNKNOWN
Instance Attribute Summary
Attributes inherited from DB
Instance Method Summary collapse
Methods included from Arrayisch
Methods inherited from DB
#[]=, #_txn, #at, #bdb_object, #close, #cursor, #delete, #each, #initialize, new, #put, #reverse, #sync, #to_hash, #transaction, #truncate
Constructor Details
This class inherits a constructor from SBDB::DB
Instance Method Details
#unshift(txn = nil) ⇒ Object
151 152 153 |
# File 'lib/sbdb/db.rb', line 151 def unshift txn = nil @db.get _txn(txn), "\0\0\0\0", nil, Bdb::DB_CONSUME end |