cacheKeyExists

Returns true/false whether the cache contains an element with the specified keyname.

cacheKeyExists(key [, cacheName]) → returns boolean

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

Argument Reference

key string
Required

Key to check

cacheName string

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

Compatibility

Lucee:

DEPRECATED since version 4.5 Use CacheIdExists instead

Examples
Sample code invoking the cacheKeyExists function

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

Fork me on GitHub