cacheRegionExists

Checks if the cache region exists.

cacheRegionExists(region) → returns boolean

cacheRegionExists Argument Reference

region string
Required

Name of the cache region.

password string

Lucee 5+ The password for the web administrator is required to interact with Cache Connections.

Compatibility

Lucee:

DEPRECATED since version 5 Only been added for compatibility to other CFML Engines. These functions are already marked as "deprecated" and it's strongly suggested not to use them in new code.

Links more information about cacheRegionExists

Examples sample code invoking the cacheRegionExists function

Checking to see if the region is present in the cache

<cfif NOT cacheRegionExists('testregion')>
    <cfset cacheRegionNew('testregion')>
</cfif>

Fork me on GitHub