Global Helpers
appCacheRead()
Signature
Section titled “Signature”appCacheRead() — returns any
Available in: controller, model, mapper, migrator, migration, tabledefinition
Category: Caching Functions
Description
Section titled “Description”Returns the value cached under key, or defaultValue when there is no unexpired entry. A cached
false, 0 or "" is returned as it is. Complex values come back as a copy.
Keys are shared by every user, session, tenant and host (see appCacheFetch()).
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
key | any | yes | — | A string, or a struct or array of values (struct key order doesn’t matter). |
defaultValue | any | no | — | What to return on a miss. The named argument default is also accepted. |