cachedWithinId

Returns the cache key for a cached query, function or HTTP result. The key can be passed to cacheRemove().

cachedWithinId(cacheObject [, arguments]) → returns string

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

Argument Reference

cacheObject any
Required

The query, function or HTTP result that was cached with cachedWithin.

arguments any

For a cached function, the arguments used for the cached call, as an array or struct.

Examples
Sample code invoking the cachedWithinId function

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

Fork me on GitHub