Lucee Function Reference

Function CACHEDELETE

Deletes a single element from the cache.

Example

cachedelete(object id,[boolean throwOnError,[string cacheName]]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
id object  Yes the id of the element to delete, you can also pass an array of multiple ids.  
throwOnError boolean  No 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.