Checks if the cache region exists.
cacheRegionExists(region)
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
region | string | Yes | Name of the cache region. | |
password | string | No | Lucee5+ The password for the web administrator is required to interact with Cache Connections. |
Checking to see if the region is present in the cache
<cfif NOT cacheRegionExists('testregion')>
<cfset cacheRegionNew('testregion')>
</cfif>