JCache
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JCache is an abstract class which defines Joomla's basic caching functionality. The class needs to be extended by a concrete cache handler. The Joomla Framework currently provides the handlers JCacheView, JCachePage, JCacheCallback and JCacheOutput
Defined in[edit]
libraries/joomla/cache/cache.php
Methods[edit]
Method name | Description |
---|---|
__construct | Constructor |
getStores | Get the storage handlers |
setCaching | Set caching enabled state |
setLifeTime | Set cache lifetime |
setCacheValidation | Set cache validation |
get | Get cached data by id and group |
store | Store the cached data by id and group |
remove | Remove a cached data entry by id and group |
clean | Clean cache for a group given a mode. |
gc | Garbage collect expired cache data |
getInstance | Returns a reference to a cache adapter object, always creating it |
Importing[edit]
jimport( 'joomla.cache.cache' );
Examples[edit]
Code Examples[edit]