JCache/1.5
From Joomla! Documentation
< JCache(Difference between revisions)
(Layout updates) |
m (→See also: fixing link to API) |
||
| Line 72: | Line 72: | ||
<source lang="php">jimport( 'joomla.cache.cache' );</source> | <source lang="php">jimport( 'joomla.cache.cache' );</source> | ||
===See also=== | ===See also=== | ||
| − | * {{JVer|1.5}} '''JCache''' on [http://api.joomla.org/Joomla-Framework/Cache/JCache.html api.joomla.org] | + | * {{JVer|1.5}} '''JCache''' on [http://api.joomla.org/1.5/Joomla-Framework/Cache/JCache.html api.joomla.org] |
* {{JVer|1.5}} '''JCache source code''' on [[jframework15:cache/cache.php|JoomlaCode]] | * {{JVer|1.5}} '''JCache source code''' on [[jframework15:cache/cache.php|JoomlaCode]] | ||
* {{JVer|1.5}} Subpackage [[Subpackage Cache/1.5|Cache]] | * {{JVer|1.5}} Subpackage [[Subpackage Cache/1.5|Cache]] | ||
Latest revision as of 14:15, 13 February 2013
[edit]
JCache
[edit] Description
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 [Edit Descripton]
[edit] Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | _getStorage | Get the cache storage handler. |
| public | clean | Clean cache for a group given a mode. |
| public | gc | Garbage collect expired cache data. |
| public | get | Get cached data by id and group. |
| public | getStores | Get the storage handlers. |
| public | remove | Remove a cached data entry by id and group. |
| public | setCacheValidation | Set cache validation. |
| public | setCaching | Set caching enabled state. |
| public | setLifeTime | Set cache lifetime. |
| public | store | Store the cached data by id and group. |
| public | getInstance | Returns a reference to a cache adapter object, always creating it. |
- Defined in libraries/joomla/cache/cache.php
- Extends JObject
- Extended by
[edit] Importing
jimport( 'joomla.cache.cache' );
[edit] See also
-
JCache on api.joomla.org
-
JCache source code on JoomlaCode
-
Subpackage Cache
- Other versions of JCache
SeeAlso:JCache [Edit See Also]
[edit] User contributed notes
<CodeExamplesForm />