Constructors
Private
constructor
- new KVStorageModule(__namedParameters): KVStorageModule
Parameters
__namedParameters: {
storageDir: string;
}
Properties
_storageDir
_storageDir: string
Methods
clear
- clear(): Promise<unknown>
Returns Promise<unknown>
delete
- delete(key): Promise<unknown>
Returns Promise<unknown>
get
- get(key): Promise<unknown>
Returns Promise<unknown>
has
- has(key): Promise<unknown>
Returns Promise<unknown>
Private
isAlphanumeric
- isAlphanumeric(str): boolean
Returns boolean
list
- list(): Promise<unknown>
Returns Promise<unknown>
put
- put(key, value): Promise<unknown>
Returns Promise<unknown>
Private
showError
- showError(msg?): void
Returns void
Static
init
- init(__namedParameters): Promise<KVStorageModule>
Parameters
__namedParameters: {
dataDirName?: string;
storageName: string;
}
Optional
dataDirName?: string
storageName: string