Properties
delete
delete: (key: TKey) => Promise<boolean>
Type declaration
-
- (key: TKey): Promise<boolean>
-
Parameters
Returns Promise<boolean>
entries
entries: () => AsyncIterableIterator<[TKey, TValue]>
Type declaration
-
- (): AsyncIterableIterator<[TKey, TValue]>
-
Returns AsyncIterableIterator<[TKey, TValue]>
get
get: (key: TKey) => Promise<TValue | undefined>
Type declaration
-
- (key: TKey): Promise<TValue | undefined>
-
Parameters
Returns Promise<TValue | undefined>
has
has: (key: TKey) => Promise<boolean>
Type declaration
-
- (key: TKey): Promise<boolean>
-
Parameters
Returns Promise<boolean>
set
set: (key: TKey, value: TValue) => Promise<this>
Type declaration
-
- (key: TKey, value: TValue): Promise<this>
-
Parameters
Returns Promise<this>
A simple storage solution that can be used for internal values that need to be stored. In general storages taking objects as keys are expected to work with different instances of an object with the same values. Exceptions to this expectation should be clearly documented.