Functions
- CacheClear() Flushes the cache
- CacheCount() Returns the amount (integer) of keys stored in the cache.
- CacheDelete() Deletes a single element from the cache.
- CacheGet() Gets an object that is stored in the cache.
- CacheGetAll() this function return a structure containing all elements inside the cache.
- CacheGetAllIds() this function return an array containing all keys inside the cache.
- CacheGetDefaultCacheName() return the default cache name for a specific type
- CacheGetMetadata() returns a structure with some Metadata regarding the cache elements
- CacheGetProperties() Gets the cache properties for the object cache, the page cache, or both.
- CacheIdExists() Returns true/false whether the cache contains an element with the certain id.
- CacheKeyExists() this function is deprecated
- CachePut() Stores an object in the cache, with a life time and an idle time.
- CacheRegionExists() this function exists solely for the purpose of compatibility with other CFML Engines.
- CacheRegionNew() This function exists solely for the purpose of compatibility with other CFML Engines.
- CacheRegionRemove() this function exists solely for the purpose of compatibility with other CFML Engines.
- CacheRemove() removes elements from cache defined with argument ids.
- CacheRemoveAll() this function is deprecated, use instead cacheClear. Removes all elements from the cache
- CacheSetProperties() This function is not supported by Lucee
- ComponentCacheClear() flush the component path cache
- ComponentCacheList() list elements in the component path cache
- CtCacheClear() flush the custom tag path cache
- CtCacheList() list elements in the custom tag path cache
- EntityLoad() Loads and returns an array of entities of the specified entityname.
- InspectTemplates() Flag all the cfml code (cfm, cfcs) in the cache of compiled code (aka the Page Pool) to be checked once for any changes.
- PagePoolClear() Clear out all the cfml code (cfm, cfcs) in the cache of compiled code (aka the Page Pool)
- PagePoolList() Lists all the cfml code (cfm, cfcs) in the cache of compiled code (aka the Page Pool)
- Query() Create and populate a query object in the form query(columnName1:[1,2,3],columnName2:[4,5,6])
- QueryExecute() Executes a SQL query, returns the result.
- RedisCommand() execute any redis function without any interpretation from Lucee.
- RedisCommandLowPriority() This function works the same way as RedisCommand with only one difference. In case the connection pool is down to one free connection. The thread will wait for at least one connection more get free. So this command will not use the last connection available.
- RedisConnectionPoolInfo() Gives back detailed information about the Redis connection pool.
- SystemCacheClear() clears all caches or the specified cache
Tags
- <cfcache> Speeds up page rendering when dynamic content
- <cfdistributedlock> Redis based lock that can be used across servers
- <cffile> Handles all interactions with files
- <cfhttp> Lets you execute HTTP POST and GET operations on files.
- <cfobjectcache> Flushes an object cache or returns the current size.
- <cfquery> Passes SQL statements to a data source. Not limited to queries.
Guides
- Adding Caches via Application.cfc How to add per Application caches via Application.cfc
- Cache a query for the current request Cache a Query for the current request
- Cached Within ## CachedWithin ## The attribute `cachedWithin` has been added to the tags `cffile` and `cfhttp` and it has also been added as an interface to Lucee so you can make your own `cachedwithin` implementation. ## Supported with cffile and cfhttp ## The possibility to cache the result of the tags `cffile` and `cfhttp` has been added in Lucee 5 using the attribute `cachedWithin` for these tags
- List existing Cache Connections List existing Cache Connections
- Performance / Caching ## Performance / Caching ## The settings you make here determine how Lucee deals with changed CFM files. Normally Lucee will compile any modified file into a new Java class file. While this is very fast (depending on the complexity and size of the file to this might take around 10ms), however, each , , CFC invocation, CustomTags call, etc