Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($options=array()) | |
get ($id, $group, $checkTime=true) | |
getAll () | |
store ($id, $group, $data) | |
remove ($id, $group) | |
clean ($group, $mode=null) | |
gc () | |
lock ($id, $group, $locktime) | |
unlock ($id, $group=null) |
Fonctions membres publiques statiques | |
static | getInstance ($handler=null, $options=array()) |
static | test () |
static | addIncludePath ($path= '') |
Attributs publics | |
$_now | |
$_lifetime | |
$_locking | |
$_language | |
$_application | |
$_hash |
Fonctions membres protégées | |
_getCacheId ($id, $group) |
Attributs protégés | |
$rawname |
JCacheStorage::__construct | ( | $options = array() | ) |
Constructor
array | $options | Optional parameters |
Réimplémentée dans JCacheStorageMemcache, JCacheStorageMemcached, JCacheStorageCachelite, JCacheStorageFile, JCacheStorageEaccelerator, et JCacheStorageWincache.
Références $config, $options, JFactory\getConfig(), et null.
|
protected |
|
static |
Add a directory where JCacheStorage should search for handlers. You may either pass a string or an array of directories.
string | $path | A path to search. |
Références $path, JPath\clean(), et jimport().
Référencé par getInstance().
JCacheStorage::clean | ( | $group, | |
$mode = null |
|||
) |
Clean cache for a group given a mode.
string | $group | The cache data group |
string | $mode | The mode for cleaning cache [group|notgroup] group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group |
Réimplémentée dans JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageCachelite, JCacheStorageFile, JCacheStorageEaccelerator, JCacheStorageXcache, JCacheStorageWincache, et JCacheStorageApc.
JCacheStorage::gc | ( | ) |
Garbage collect expired cache data
Réimplémentée dans JCacheStorageCachelite, JCacheStorageFile, JCacheStorageEaccelerator, JCacheStorageXcache, JCacheStorageWincache, et JCacheStorageApc.
JCacheStorage::get | ( | $id, | |
$group, | |||
$checkTime = true |
|||
) |
Get cached data by id and group
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 JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageCachelite, JCacheStorageFile, JCacheStorageEaccelerator, JCacheStorageWincache, JCacheStorageApc, et JCacheStorageXcache.
JCacheStorage::getAll | ( | ) |
Get all cached data
Réimplémentée dans JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageCachelite, JCacheStorageFile, JCacheStorageEaccelerator, JCacheStorageWincache, JCacheStorageXcache, et JCacheStorageApc.
|
static |
Returns a cache storage handler object, only creating it if it doesn't already exist.
string | $handler | The cache storage handler to instantiate |
array | $options | Array of handler options |
Références $class, $options, $path, JText\_(), addIncludePath(), JPath\find(), JFactory\getConfig(), jimport(), null, JError\raiseWarning(), et JText\sprintf().
Référencé par JCache\_getStorage().
JCacheStorage::lock | ( | $id, | |
$group, | |||
$locktime | |||
) |
Lock cached item
string | $id | The cache data id |
string | $group | The cache data group |
integer | $locktime | Cached item max lock time |
Réimplémentée dans JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageFile, JCacheStorageEaccelerator, et JCacheStorageApc.
JCacheStorage::remove | ( | $id, | |
$group | |||
) |
Remove a cached data entry by id and group
string | $id | The cache data id |
string | $group | The cache data group |
Réimplémentée dans JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageCachelite, JCacheStorageFile, JCacheStorageEaccelerator, JCacheStorageWincache, JCacheStorageXcache, et JCacheStorageApc.
JCacheStorage::store | ( | $id, | |
$group, | |||
$data | |||
) |
Store the data to cache by id and group
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 JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageCachelite, JCacheStorageFile, JCacheStorageEaccelerator, JCacheStorageWincache, JCacheStorageXcache, et JCacheStorageApc.
|
static |
Test to see if the storage handler is available.
Réimplémentée dans JCacheStorageCachelite, JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageFile, JCacheStorageXcache, JCacheStorageEaccelerator, JCacheStorageWincache, et JCacheStorageApc.
JCacheStorage::unlock | ( | $id, | |
$group = null |
|||
) |
Unlock cached item
string | $id | The cache data id |
string | $group | The cache data group |
Réimplémentée dans JCacheStorageMemcached, JCacheStorageMemcache, JCacheStorageFile, JCacheStorageEaccelerator, et JCacheStorageApc.
JCacheStorage::$_application |
JCacheStorage::$_hash |
JCacheStorage::$_language |
JCacheStorage::$_lifetime |
JCacheStorage::$_locking |
JCacheStorage::$_now |
|
protected |