cacheRegionExists

Checks if the cache region exists.

cacheRegionExists(region) → returns boolean

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>

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub