CacheGet

Gets an object that is stored in the cache.

CacheGet( id [, throwWhenNotExist [, cacheName ] ] )

Returns: object

Argument Description Default
id
string, required

name of the element to return

Alias: name, key

throwWhenNotExist
object, optional

define if the functions throws an exception when the element does not exist (default is false).

false

cacheName
string, optional

definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead.

Alias: cache, region

Examples

There are currently no examples for this function.

See also