Methods
exists
- exists(key: string): Promise<boolean>
Parameters
Returns Promise<boolean>
get
- get<T>(key: string): Promise<T>
Type parameters
Parameters
Returns Promise<T>
getOrAdd
- getOrAdd<T>(key: string, value: T, cacheTime?: Duration): Promise<T>
Type parameters
Parameters
-
key: string
-
value: T
-
cacheTime: Duration = Duration.forever() Default value
Returns Promise<T>
set
- set<T>(key: string, value: T, cacheTime?: Duration): Promise<void>
Type parameters
Parameters
-
key: string
-
value: T
-
cacheTime: Duration = Duration.forever() Default value
Returns Promise<void>