CacheGetDefaultCacheName()
return the default cache name for a specific type
CacheGetDefaultCacheName( type=string );
Returns: String
| Argument | Description |
|---|---|
|
type
string,
required
|
edit
cache type valid values are
|
Examples
edit// cacheGetDefaultCacheName returns the name of the default cache
// configured in the Lucee Administrator for a given type
// valid types: object, template, query, resource, function, include, http, file, webservice
// throws an exception if no default is configured for that type
try {
name = cacheGetDefaultCacheName( "object" );
dump( name );
} catch ( any e ) {
dump( "no default object cache configured: " & e.message );
}
See also
- Cache
- Selective Cache Invalidation
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)