Lets you retrieve the underlying cache object to access additional cache functionality that is not implemented in the tag cfcache.
Note: Caution! Using the cacheGetSession function might pose security vulnerabilities. If you wish to disable the usage of this function, add it to Sandbox Security.
cacheGetSession(objectType)
→ returns any
object
template
false
<!--- put an object into user-defined object cache --->
<cfset cachePut("cache1","hello",15,15)>
<!--- get underlying user-defined object cache --->
<cfset objectCache = cacheGetSession("object",true)>
<!--- get/print user-defined object cache properties --->
<cfdump var = "#objectCache.getCacheConfiguration()#">
Expected Result: cache object
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.