interface KeyValueStore { clear(key): Promise<void>; get(key): Promise<any>; set(key,
value,
opts?): Promise<void>; } Methods
clear
- clear(key): Promise<void>
Returns Promise<void>
get
- get(key): Promise<any>
Returns Promise<any>
set
- set(key, value, opts?): Promise<void>
Parameters
key: string
value: any
Optional
opts: {
expiresAt?: Date;
}
Optional
expiresAt?: Date
Returns Promise<void>