Constructor
new Cache(app)
Parameters:
| Name | Type | Description |
|---|---|---|
app | object | Application container. |
- Source
Members
_purgeItem
Remove a specific cache namespace or all first-level namespaces.
- Source
dispose
Dispose internal reference.
- Source
getRootDir
Get root cache directory for this plugin.
- Source
load
Load cached content when available and not expired.
- Source
prep
Prepare cache paths for a namespaced key and TTL.
- Source
purge
Purge cache by namespace or remove expired TTL directories.
- Source
save
Save a value into cache for the given key and TTL directory.
- Source
sync
Return cached content, and store the fallback value if cache is empty.
- Source