JCache
From Joomla! Documentation
(Difference between revisions)
(→Importing) |
(→Concrete Cache Storage Handlers) |
||
| Line 74: | Line 74: | ||
* [[JCacheStorageMemcache]] | * [[JCacheStorageMemcache]] | ||
* [[JCacheStorageXCache]] | * [[JCacheStorageXCache]] | ||
| − | * [[ | + | * [[JSessionStorageXcache]] |
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JCache]]</noinclude> | <noinclude>[[Category:Development]][[Category:Framework]][[Category:JCache]]</noinclude> | ||
Revision as of 15:54, 9 August 2009
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
Contents |
Availability
Defined in
/libraries/joomla/cache/storage.php
Extends
Extended by
Methods
| Method name | Description |
|---|---|
| __construct | Constructor. It sets the caching options, like the language, the caching base directory path, but most importantly the storage engine to be used (See: JCacheStorage). |
| clean | Clean the cache of a certain group. See JCacheStorage::clean(). |
| gc | Garbage collect expired cache data. See JCacheStorage::gc(). |
| get | Returns cached data by id and group. See JCacheStoragge::get(). |
| getInstance | Returns a concrete cache handler object, depending of the passed caching type paramter. |
| getStores | Get the storage handlers that have been defined in the joomla caching library (libraries/joomla/cache/storage/
|
| remove | Remove a cached data entry by id and group. See JCacheStorage::remove() |
| setCacheValidation | Depreceated. |
| setCaching | Set caching enabled state. Pass true to enable caching. |
| setLifeTime | Set cache lifetime |
| store | Store the cached data by id and group. See JCacheStorage::store() |
Importing
jimport( 'joomla.cache.storage' );