This function return an array containing all keys inside the cache.

cacheGetAllIds() → returns array

Argument Reference

filter string

Lucee 4.5+ Key filter for the elements, the filter follow the same rules as for cfdirectory-filter.

cacheName string
Default: ObjectCache

CF 10+ The cache region to use or the default object cache

isAccurate boolean
Default: true

CF 11+ When set to false, function will return the result faster. However, the result may not be accurate. If you need only the IDs of valid (unexpired) objects from the cache, set accurate to true. If you set accurate to false, the IDs of all the objects in the cache will be returned.

Sample code invoking the cacheGetAllIds function

Fork me on GitHub