Classes
Members
clear :Promise.<void>
Clear all cached entries.
Type:
- Promise.<void>
- Implements
- Source
delete :Promise.<void>
Delete a cached entry by key.
Type:
- Promise.<void>
- Implements
- Source
get :Promise.<(CacheEntry.<T>|null)>
Get a cached entry by key.
Type:
- Promise.<(CacheEntry.<T>|null)>
- Implements
- Source
set :Promise.<void>
Set a cached entry by key.
Type:
- Promise.<void>
- Implements
- Source
Methods
entries()
Returns a snapshot of all entries in memory.
- Source
entries() → {Array}
Returns a snapshot of all entries in memory.
- Source
Returns:
- Type:
- Array
keys()
Returns a snapshot of all keys in memory.
- Source
keys() → {Array}
Returns a snapshot of all keys in memory.
- Source
Returns:
- Type:
- Array
refreshAccess(key)
Refresh the access time of a cached entry.
Parameters:
| Name | Type | Description |
|---|---|---|
key | The cache key. |
- Source