Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($options=array()) | |
contains ($id, $group) | |
get ($id, $group, $checkTime=true) | |
getAll () | |
store ($id, $group, $data) | |
remove ($id, $group) | |
clean ($group, $mode=null) | |
flush () | |
gc () | |
lock ($id, $group, $locktime) | |
unlock ($id, $group=null) | |
Fonctions membres publiques statiques | |
static | isSupported () |
static | addIncludePath ($path='') |
Champs de données | |
$_now | |
$_lifetime | |
$_locking | |
$_language | |
$_application | |
$_hash | |
Fonctions membres protégées | |
_getCacheId ($id, $group) | |
Attributs protégés | |
$rawname | |
Abstract cache storage handler
__construct | ( | $options = array() | ) |
Constructor
array | $options | Optional parameters |
Références $app, $options, Factory\getApplication(), et JPATH_CONFIGURATION.
|
protected |
Get a cache ID string from an ID/group pair
string | $id | The cache data ID |
string | $group | The cache data group |
Références $id, $name, et Cache\getPlatformPrefix().
|
static |
Add a directory where CacheStorage should search for handlers. You may either pass a string or an array of directories.
array | string | $path | A path to search. |
Références $path, et Path\clean().
clean | ( | $group, | |
$mode = null |
|||
) |
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
string | $group | The cache data group |
string | $mode | The mode for cleaning cache [group|notgroup] |
contains | ( | $id, | |
$group | |||
) |
Check if the cache contains data stored by ID and group
string | $id | The cache data ID |
string | $group | The cache data group |
flush | ( | ) |
Flush all existing items in storage.
gc | ( | ) |
Garbage collect expired cache data
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 |
getAll | ( | ) |
Get all cached data
|
static |
Test to see if the storage handler is available.
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 |
remove | ( | $id, | |
$group | |||
) |
Remove a cached data entry by ID and group
string | $id | The cache data ID |
string | $group | The cache data group |
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 |
unlock | ( | $id, | |
$group = null |
|||
) |
Unlock cached item
string | $id | The cache data ID |
string | $group | The cache data group |
$_application |
$_hash |
$_language |
$_lifetime |
$_locking |
$_now |
|
protected |