Constructors
constructor
- new SMTStore(db: DatabaseReader, data?: BufferMap<Buffer>): SMTStore
-
Parameters
-
db: DatabaseReader
-
Optional
data: BufferMap<Buffer>
Properties
Private
Readonly
_data
_data: BufferMap<Buffer>
Private
Readonly
_db
_db: DatabaseReader
Methods
Private
_getKey
- _getKey(key: Buffer): Buffer
-
Returns Buffer
del
- del(key: Buffer): Promise<void>
-
Returns Promise<void>
finalize
- finalize(batch: DatabaseWriter): void
-
Returns void
get
- get(key: Buffer): Promise<Buffer>
-
Returns Promise<Buffer>
set
- set(key: Buffer, value: Buffer): Promise<void>
-
Parameters
-
key: Buffer
-
value: Buffer
Returns Promise<void>