Whatever message this page gives is out now! Go check it out!

CacheRegionExists

Last update:
May 18, 2026

Description

Checks if the cache region exists.

Returns

True if the cache region exists.

History

ColdFusion 10: Added this function.

Syntax

CacheRegionExists(region)

Properties

Parameter
Description
region
Name of the cache region.

Example

<!--- Checking if the region is present in the Cache ---> 
<cfif #cacheRegionExists("testregion")# EQ "YES"> 
<cfset cacheRegionRemove("testregion")> 
<cfif #cacheRegionExists("testregion")# EQ "NO"> 
<cfoutput>Region is deleted<br></cfoutput> 
</cfif> 
<cfelse> 
<cfset cacheRegionNew("testregion")> 
<cfset cacheRegionRemove("testregion")> 
<cfif #cacheRegionExists("testregion")# EQ "NO"> 
<cfoutput>Region is deleted<br></cfoutput> 
</cfif> 
</cfif>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page