ldb: options.
This commit is contained in:
parent
048a99b9ba
commit
4a0eaa6b34
@ -36,8 +36,8 @@ function ldb(options) {
|
|||||||
|
|
||||||
return new LowlevelUp(options.location, {
|
return new LowlevelUp(options.location, {
|
||||||
// LevelDB and others
|
// LevelDB and others
|
||||||
createIfMissing: true,
|
createIfMissing: options.createIfMissing !== false,
|
||||||
errorIfExists: false,
|
errorIfExists: options.errorIfExists === true,
|
||||||
compression: options.compression !== false,
|
compression: options.compression !== false,
|
||||||
cacheSize: options.cacheSize || (8 << 20),
|
cacheSize: options.cacheSize || (8 << 20),
|
||||||
writeBufferSize: options.writeBufferSize || (4 << 20),
|
writeBufferSize: options.writeBufferSize || (4 << 20),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user