Class: SBDB::Queue

Inherits:
DB
  • Object
show all
Includes:
Arrayisch
Defined in:
lib/sbdb/db.rb

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

#home, #txn

Instance Method Summary collapse

Methods included from Arrayisch

#[], #[]=, #push

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