Actions

API16

JCache

From Joomla! Documentation

Revision as of 05:00, 30 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] 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

Defined in

libraries/joomla/cache/cache.php

Methods

Method name Description
__construct Constructor
getStores Get the storage handlers
setCaching Set caching enabled state
setLifeTime Set cache lifetime
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

jimport( 'joomla.cache.cache' );

[Edit See Also] SeeAlso:JCache

Examples

<CodeExamplesForm />