Methods
get
- get<T>(key: any): undefined | T | PromiseLike<undefined | T>
-
Returns undefined | T | PromiseLike<undefined | T>
- get<T, TDefault>(key: any, defaultValue: TDefault): T | TDefault | PromiseLike<T | TDefault>
-
Type Parameters
-
T extends unknown = any
-
TDefault extends unknown = T
Parameters
-
key: any
-
defaultValue: TDefault
Returns T | TDefault | PromiseLike<T | TDefault>
set
- set(key: any, value: any): boolean | PromiseLike<boolean>
-
Returns boolean | PromiseLike<boolean>
Describes a cache.