Members
(static) CacheAdapter :CacheAdapter
The adapter interface. Extend this class to implement a specific adapter.
Type:
Methods
(static) flushAll() → {*}
Clear all items in the cache
Returns:
Returns the value from the adapter's flushAll() method
- Type
- *
(static) get(publicId, options) → {*}
Get an item from the cache
Parameters:
Name | Type | Description |
---|---|---|
publicId |
string | |
options |
object |
Returns:
- Type
- *
(static) getAdapter() → {CacheAdapter}
Get the adapter the Cache is using
Returns:
the current cache adapter
- Type
- CacheAdapter
(static) set(publicId, options, value) → {*}
Set a new value in the cache
Parameters:
Name | Type | Description |
---|---|---|
publicId |
string | |
options |
object | |
value |
* |
Returns:
- Type
- *
(static) setAdapter(adapter)
Set the cache adapter
Parameters:
Name | Type | Description |
---|---|---|
adapter |
CacheAdapter | The cache adapter |