Test to see if the cache storage is available.
static
boolean
test
()
Redefinition of:
- JCacheStorage::test()
- Test to see if the storage handler is available.
Clean cache for a group given a mode.
This requires the php.ini setting xcache.admin.enable_auth = Off.
boolean
clean
(string $group, [string $mode = null])
-
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
Redefinition of:
- JCacheStorage::clean()
- Clean cache for a group given a mode.
Garbage collect expired cache data
This is a dummy, since xcache has built in garbage collector, turn it on in php.ini by changing default xcache.gc_interval setting from
- to 3600 (=1 hour)
boolean
gc
()
Redefinition of:
- JCacheStorage::gc()
- Garbage collect expired cache data
Get cached data by id and group
mixed
get
(string $id, string $group, [boolean $checkTime = true])
-
string
$id: The cache data id
-
string
$group: The cache data group
-
boolean
$checkTime: True to verify cache time expiration threshold
Redefinition of:
- JCacheStorage::get()
- Get cached data by id and group
Get all cached data
This requires the php.ini setting xcache.admin.enable_auth = Off.
array
getAll
()
Redefinition of:
- JCacheStorage::getAll()
- Get all cached data
Remove a cached data entry by id and group
boolean
remove
(string $id, string $group)
-
string
$id: The cache data id
-
string
$group: The cache data group
Redefinition of:
- JCacheStorage::remove()
- Remove a cached data entry by id and group
Store the data by id and group
boolean
store
(string $id, string $group, string $data)
-
string
$id: The cache data id
-
string
$group: The cache data group
-
string
$data: The data to store in cache
Redefinition of:
- JCacheStorage::store()
- Store the data to cache by id and group
Inherited Methods
Inherited From JCacheStorage
JCacheStorage::__construct()
JCacheStorage::addIncludePath()
JCacheStorage::clean()
JCacheStorage::gc()
JCacheStorage::get()
JCacheStorage::getAll()
JCacheStorage::getInstance()
JCacheStorage::lock()
JCacheStorage::remove()
JCacheStorage::store()
JCacheStorage::test()
JCacheStorage::unlock()
JCacheStorage::_getCacheId()