API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JCacheStorage::__construct | ( | $ | options = array() | ) |
Constructor
protected
array | $options | optional parameters |
Réimplémentée dans JCacheStorageApc, JCacheStorageEaccelerator, JCacheStorageFile, JCacheStorageMemcache, et JCacheStorageXCache.
JCacheStorage::clean | ( | $ | group, |
$ | mode | ||
) |
Clean cache for a group given a mode.
group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group
public
string | $group | The cache data group |
string | $mode | The mode for cleaning cache [group|notgroup] |
Réimplémentée dans JCacheStorageApc, JCacheStorageEaccelerator, JCacheStorageFile, JCacheStorageMemcache, et JCacheStorageXCache.
JCacheStorage::gc | ( | ) |
Garbage collect expired cache data
public
Réimplémentée dans JCacheStorageEaccelerator, JCacheStorageFile, et JCacheStorageMemcache.
JCacheStorage::get | ( | $ | id, |
$ | group, | ||
$ | checkTime | ||
) |
Get cached data by id and group
public
string | $id | The cache data id |
string | $group | The cache data group |
boolean | $checkTime | True to verify cache time expiration threshold |
Réimplémentée dans JCacheStorageApc, JCacheStorageEaccelerator, JCacheStorageFile, JCacheStorageMemcache, et JCacheStorageXCache.
& JCacheStorage::getInstance | ( | $ | handler = 'file' , |
$ | options = array() |
||
) | [static] |
Returns a reference to a cache storage hanlder object, only creating it if it doesn't already exist.
string | $handler | The cache storage handler to instantiate |
Références $class, $now, $path, $return, et JError::raiseWarning().
Référencé par JCache::_getStorage().
JCacheStorage::remove | ( | $ | id, |
$ | group | ||
) |
Remove a cached data entry by id and group
public
string | $id | The cache data id |
string | $group | The cache data group |
Réimplémentée dans JCacheStorageApc, JCacheStorageEaccelerator, JCacheStorageFile, JCacheStorageMemcache, et JCacheStorageXCache.
JCacheStorage::store | ( | $ | id, |
$ | group, | ||
$ | data | ||
) |
Store the data to cache by id and group
public
string | $id | The cache data id |
string | $group | The cache data group |
string | $data | The data to store in cache |
Réimplémentée dans JCacheStorageApc, JCacheStorageEaccelerator, JCacheStorageFile, JCacheStorageMemcache, et JCacheStorageXCache.
JCacheStorage::test | ( | ) | [static] |
Test to see if the storage handler is available.
public
Réimplémentée dans JCacheStorageApc, JCacheStorageEaccelerator, JCacheStorageFile, JCacheStorageMemcache, et JCacheStorageXCache.