CacheIdExists()
Returns true/false whether the cache contains an element with the certain id.
CacheIdExists( id=string, cacheName=string );
Returns: Boolean
Examples
<cfset cache_obj = 'fruits'>
<cfset cachePut('cache_obj',cache_obj,createTimespan(0,0,0,30),createTimespan(0,0,0,30),'region_cachename')>
//In above region_cachename is, should be creates a cache from lucee_administrator.
<cfoutput>Cache Exists is <b>#cacheIdExists('cache_obj','test_cache')#</b></cfoutput>
See also
- Cache
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)