VersionedHashDBM constructor

VersionedHashDBM(
  1. RandomAccessFile file, {
  2. int buckets = 10007,
  3. bool flush = true,
  4. bool crc = false,
  5. 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);
}