JCacheStorage

From Joomla! Documentation
Revision as of 14:03, 9 August 2009 by Batch1211 (Talk | contribs)

Jump to: navigation, search

JCacheStorage is an abstract class. The class needs to be extended by concrete storage handlers. The Joomla Framework currently provides the handlers [JCacheStorageApc]], JCacheStorageEaccelarator, JCacheStorageFile, JCacheStorageMemcache, JCacheStorageXCache, JCacheStorageXcache

Contents

Availability

From Joomla 1.5 Joomla 1.6

Defined in

/libraries/joomla/cache/cache.php

Extends

Extended by

Methods

Method name Description
__construct Sets the storage options.
clean Clean cache for a group. Given a mode. Needs to be implemented in a concrete storage handler.
gc Garbage collect expired cache data. Needs to be implemented in a concrete storage handler.
get Get cached data by id and group. Needs to be implemented in a concrete storage handler.
getInstance Returns a reference to a concrete cache storage handler object, only creating it, if it doesn't already exist.
remove Remove a cached data entry by id and group. Needs to be implemented in a concrete storage handler.
store Store the data to cache by id and group. Needs to be implemented in a concrete storage handler.
test Test to see if the storage handler is available. Needs to be implemented in a concrete storage handler.

Importing

jimport( 'joomla.cache.cache' );

See also

Concrete Cache Storage Handlers

Concrete Caching Handlers

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox