JCacheStorage
From Joomla! Documentation
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
Defined in
/libraries/joomla/cache/cache.php
Extends
Extended by
- JCacheStorageApc
- JCacheStorageEaccelarator
- JCacheStorageFile
- JCacheStorageMemcache
- JCacheStorageXCache
- JCacheStorageXcache
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
- JCacheStorageApc
- JCacheStorageEaccelarator
- JCacheStorageFile
- JCacheStorageMemcache
- JCacheStorageXCache
- JCacheStorageXcache