Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function CACHEREGIONNEW

This Function is deprecated
this function exists solely for the purpose of compatibility with other CFML Engines. we strongly recommend not to use this function.
to create a cache connection either declare it in your Application.cfc or create it via the in the Administrator interface.

Example

cacheregionnew(string cacheName,[any properties,[any throwOnError,[string password]]]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
cacheName string  Yes the name of the cache connection to create (also known as Region in other CFML engines).  
properties any  No a structure specifying the cache properties  
throwOnError any  No specifies whether the function should throw an exception if a cache connection with that name already exists (default is true)  
password string  No the password for the web administrator is required to interact with Cache Connections.
you can optionally set it for your Application in Application.cfc using the variable [this.webAdminPassword].