|
| contains ($id, $group) |
|
| 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) |
|
| __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) |
|
APCu cache storage handler
3.5
◆ 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
- Paramètres
-
string | $group | The cache data group |
string | $mode | The mode for cleaning cache [group|notgroup] |
- Renvoie
- boolean
- Depuis
- 3.5
Références $key, $mode, et elseif.
◆ contains()
Check if the cache contains data stored by ID and group
- Paramètres
-
string | $id | The cache data ID |
string | $group | The cache data group |
- Renvoie
- boolean
- Depuis
- 3.7.0
Références $id.
◆ gc()
Garbage collect expired cache data
- Renvoie
- boolean
- Depuis
- 3.5
Références $key, et elseif.
◆ get()
get |
( |
|
$id, |
|
|
|
$group, |
|
|
|
$checkTime = true |
|
) |
| |
Get cached data by ID and group
- Paramètres
-
string | $id | The cache data ID |
string | $group | The cache data group |
boolean | $checkTime | True to verify cache time expiration threshold |
- Renvoie
- mixed Boolean false on failure or a cached data object
- Depuis
- 3.5
Références $id.
◆ getAll()
Get all cached data
- Renvoie
- mixed Boolean false on failure or a cached data object
- Depuis
- 3.5
Références $data, $item, $key, $name, et elseif.
◆ isSupported()
Test to see if the storage handler is available.
- Renvoie
- boolean
- Depuis
- 3.5
◆ lock()
lock |
( |
|
$id, |
|
|
|
$group, |
|
|
|
$locktime |
|
) |
| |
Lock cached item
- Paramètres
-
string | $id | The cache data ID |
string | $group | The cache data group |
integer | $locktime | Cached item max lock time |
- Renvoie
- mixed Boolean false if locking failed or an object containing properties lock and locklooped
- Depuis
- 3.5
Références $id, et Joomla\Database\Query\$returning.
◆ remove()
Remove a cached data entry by ID and group
- Paramètres
-
string | $id | The cache data ID |
string | $group | The cache data group |
- Renvoie
- boolean
- Depuis
- 3.5
Références $id.
◆ store()
store |
( |
|
$id, |
|
|
|
$group, |
|
|
|
$data |
|
) |
| |
Store the data to cache by ID and group
- Paramètres
-
string | $id | The cache data ID |
string | $group | The cache data group |
string | $data | The data to store in cache |
- Renvoie
- boolean
- Depuis
- 3.5
Références $data, et $id.
◆ unlock()
unlock |
( |
|
$id, |
|
|
|
$group = null |
|
) |
| |
Unlock cached item
- Paramètres
-
string | $id | The cache data ID |
string | $group | The cache data group |
- Renvoie
- boolean
- Depuis
- 3.5
Références $id.
La documentation de cette classe a été générée à partir du fichier suivant :