Interface BaseStoreInterface<K, V>
interface BaseStoreInterface<K, V> { mdelete(keys: K[]): Promise<void>; mget(keys: K[]): Promise<(undefined | V)[]>; mset(keyValuePairs: [K, V][]): Promise<void>; yieldKeys(prefix?: string): AsyncGenerator<string | K, any, unknown>; } Methods
mdelete
- mdelete(keys): Promise<void>
Returns Promise<void>
- A Promise that resolves when the operation is complete.
mget
- mget(keys): Promise<(undefined | V)[]>
Returns Promise<(undefined | V)[]>
- A Promise that resolves with array of values or undefined if key not found.
mset
- mset(keyValuePairs): Promise<void>
Returns Promise<void>
- A Promise that resolves when the operation is complete.
yieldKeys
- yieldKeys(prefix?): AsyncGenerator<string | K, any, unknown>
Returns AsyncGenerator<string | K, any, unknown>
- An asynchronous generator that yields keys on iteration.
Deprecated
For backwards compatibility only. Remove on next minor version upgrade.