cacheCount

Returns the amount (integer) of keys stored in the cache.

cacheCount([cacheName]) → returns numeric

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

Argument Reference

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 cacheCount function

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

Fork me on GitHub