JCacheStorage: Difference between revisions
From Joomla! Documentation
No edit summary |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
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 | |||
===Defined in=== | ===Defined in=== | ||
| Line 40: | Line 37: | ||
<source lang="php">jimport( 'joomla.cache.storage' );</source> | <source lang="php">jimport( 'joomla.cache.storage' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheStorage | category=JCacheStorage | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:22, 25 March 2017
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
Defined in
libraries/joomla/cache/storage.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor |
| get | Get cached data by id and group |
| store | Store the data to cache 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 cache storage hanlder object, only creating it if it doesn't already exist. |
| test | Test to see if the storage handler is available. |
Importing
jimport( 'joomla.cache.storage' );
Examples
Code Examples