CachedWithinId()
Returns the cache identifier (cache key) for a cached object.
This ID can be used with cacheRemove() to manually flush the cache entry.
Works with cached queries, functions, and HTTP results.
For cached functions, the cache ID is unique per combination of function and arguments.
Introduced: 7.1.0.11
CachedWithinId( cacheObject=any, arguments=any );
Returns: String
| Argument | Description |
|---|---|
|
cacheObject
any,
required
|
edit
The cached object to retrieve the cache ID for.
Must be a valid cache object such as a query result, function reference, or HTTP result struct that was cached using the |
|
arguments
any,
optional
|
edit
The arguments used when the cache entry was created.
Required for cached functions to identify the specific cache entry, as each unique set of arguments creates a separate cache entry.
Can be provided as an array |
Examples
There are currently no examples for this function 30,354ms WARN No examples for function CachedWithinIdSee also
- Cache
- CachedWithinFlush()
- CacheGet()
- CachePut()
- Selective Cache Invalidation
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)