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

Sample code invoking the cacheCount function

Fork me on GitHub