VersionedHashDBM constructor
VersionedHashDBM(
- RandomAccessFile file, {
- int buckets = 10007,
- bool flush = true,
- bool crc = false,
- bool readonly = false,
Open a versioned database. The file should be opened with the same
mode semantics as HashDBM. Optional parameters match HashDBM.
Implementation
VersionedHashDBM(final RandomAccessFile file,
{final int buckets = 10007,
final bool flush = true,
final bool crc = false,
final bool readonly = false})
: _dbm = HashDBM(file,
buckets: buckets,
flush: flush,
crc: crc,
readonly: readonly,
versioned: true) {
_store = VersionStore(_dbm.file, _dbm.pool, _dbm.header.list);
}