Cache

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 customtag path cache
  • CtCacheList() list elements in the customtag 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 PagePool) to be checked once for any changes.
  • PagePoolClear() Clear out all the cfml code (cfm, cfcs) in the cache of compiled code (aka the PagePool)
  • PagePoolList() Lists all the cfml code (cfm, cfcs) in the cache of compiled code (aka the PagePool)
  • 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.
  • SystemCacheClear() clears all caches or the specified cache

Guides

  • Adding Caches via Application.cfc # Adding Caches via Application.cfc It is possible to add cache connections in Lucee 5.1+ on a per-application basis by adding configuration to your `Application.cfc`. You can also select the default object cache, query cache, function cache, etc as well. Note if these caches use an extension that provides the cache driver, the extension must be installed already
  • Cache a query for the current request Cache a Query for the current request
  • List existing Cache Connections List existing Cache Connections

Tags

  • <cfcache> Speeds up page rendering when dynamic content
  • <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.