Class: CacheStore<T>
Type parameters
Name |
---|
T |
Implements
Store
<T
>
Constructors
constructor
• new CacheStore<T
>(options?
)
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
options? | CacheOptions |
Defined in
Methods
set
▸ set(key
, value
, ttl?
): boolean
Parameters
Name | Type | Default value |
---|---|---|
key | string | undefined |
value | T | undefined |
ttl | number | 0 |
Returns
boolean
Implementation of
Defined in
get
▸ get(key
): null
| T
Parameters
Name | Type |
---|---|
key | string |
Returns
null
| T
Implementation of
Defined in
delete
▸ delete(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Implementation of
Defined in
clear
▸ clear(): void
Returns
void