cacheDelete

Deletes a single element from the cache.

cacheDelete(id [, throwOnError] [, cacheName]) → returns void

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

id string
Required

The id of the element to delete, can also contain a "," (not used as separator)

throwOnError boolean

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

cacheName string

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

Examples
Sample code invoking the cacheDelete function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub