Methods
get(key, optionsopt) → {CacheResult}
- Source:
Get an item from the cache.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
String | The item key to read this item from. |
|
options |
CacheOptions |
<optional> |
Options for the cache when getting this result. |
Returns:
The cached item. Can be null
.
- Type
- CacheResult
set(key, value, optionsopt)
- Source:
Save an item to the cache.
The return value of this method is never checked.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
String | The item key to save this item at. |
|
value |
Object | The actual item to save to the cache. |
|
options |
CacheOptions |
<optional> |
Options for the cache. |