ObjectStoreEngine constructor

ObjectStoreEngine({
  1. required ObjectStore store,
  2. String prefix = 'db/',
  3. int blockTargetSize = 64 * 1024,
  4. int arenaChunkSize = 1 << 20,
  5. int segmentCacheSize = 4,
})

Creates an engine over store under prefix.

Implementation

ObjectStoreEngine({
  required this.store,
  this.prefix = 'db/',
  this.blockTargetSize = 64 * 1024,
  int arenaChunkSize = 1 << 20,
  this.segmentCacheSize = 4,
}) : _arenaChunkSize = arenaChunkSize,
     _arena = DocArena(chunkSize: arenaChunkSize);