Typedef
Static Public Summary | ||
public |
IndexConfig: object |
|
public |
LinkedListEntry: {next: ?LinkedListEntry, prev: ?LinkedListEntry, value: V|*} |
|
public |
ObjectStoreConfig: object |
|
public |
RetrievalConfig: object |
|
public |
SyncRetrievalConfig: object |
Static Public
public IndexConfig: object source
Properties:
Name | Type | Attribute | Description |
multiEntry | boolean |
|
default: false |
unique | boolean |
|
default: false |
upgradeCondition | boolean | function(oldVersion: number, newVersion: number): boolean |
|
|
keyEncoding | ILMDBEncoding | ILevelDBEncoding |
|
|
lmdbKeyEncoding | ILMDBEncoding |
|
|
leveldbKeyEncoding | ILevelDBEncoding |
|
public LinkedListEntry: {next: ?LinkedListEntry, prev: ?LinkedListEntry, value: V|*} source
public ObjectStoreConfig: object source
Properties:
Name | Type | Attribute | Description |
codec | ICodec |
|
|
persistent | boolean |
|
|
enableLruCache | boolean |
|
Enables a LRU cache. |
lruCacheSize | number |
|
The maximum number of values stored in the cache (default: 5000) |
rawLruCacheSize | number |
|
The maximum number of raw values stored in the cache (default: 0). |
upgradeCondition | boolean | function(oldVersion: number, newVersion: number): boolean |
|
|
keyEncoding | ILMDBEncoding | ILevelDBEncoding |
|
|
lmdbKeyEncoding | ILMDBEncoding |
|
|
leveldbKeyEncoding | ILevelDBEncoding |
|
public RetrievalConfig: object source
Properties:
Name | Type | Attribute | Description |
raw | boolean |
|
default: false |
public SyncRetrievalConfig: object source
Properties:
Name | Type | Attribute | Description |
raw | boolean |
|
Raw retrieval without decoding (default: false). |
expectPresence | boolean |
|
Method throws an error if key is not available by synchronous retrieval (default: true). |