Skip to content

Global Helpers

appCacheRead()

appCacheRead() — returns any

Available in: controller, model, mapper, migrator, migration, tabledefinition Category: Caching Functions

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()).

NameTypeRequiredDefaultDescription
keyanyyes—A string, or a struct or array of values (struct key order doesn’t matter).
defaultValueanyno—What to return on a miss. The named argument default is also accepted.