Lucee Function Reference

cacheget()

Gets an object that is stored in the cache.

Example

cacheget(string id,[object throwWhenNotExist,[string cacheName]]):object

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
id string  Yes   name of the element to return  
throwWhenNotExist object  No false define if the functions throws an exception when the element does not exist (default is false).  
cacheName string  No   definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead.