Add a directory where JCacheStorage should search for handlers. You may either pass a string or an array of directories.
static array
addIncludePath
([string $path = ''])
-
string
$path: A path to search.
Returns a cache storage handler object, only creating it if it doesn't already exist.
static
JCacheStorage
getInstance
([
string $handler =
null], [
array $options =
array()])
-
string
$handler: The cache storage handler to instantiate
-
array
$options: Array of handler options
Test to see if the storage handler is available.
static boolean
isSupported
()
Redefined in descendants as:
Test to see if the storage handler is available.
static boolean
test
()
Constructor
JCacheStorage
__construct
([array $options = array()])
-
array
$options: Optional parameters
Redefined in descendants as:
Clean cache for a group given a mode.
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
Redefined in descendants as:
Garbage collect expired cache data
boolean
gc
()
Redefined in descendants as:
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
Redefined in descendants as:
Get all cached data
mixed
getAll
()
Redefined in descendants as:
Lock cached item
boolean
lock
(string $id, string $group, integer $locktime)
-
string
$id: The cache data id
-
string
$group: The cache data group
-
integer
$locktime: Cached item max lock time
Redefined in descendants as:
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
Redefined in descendants as:
Store the data to cache 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
Redefined in descendants as:
Unlock cached item
boolean
unlock
(string $id, [string $group = null])
-
string
$id: The cache data id
-
string
$group: The cache data group
Redefined in descendants as:
Get a cache_id string from an id/group pair
string
_getCacheId
(string $id, string $group)
-
string
$id: The cache data id
-
string
$group: The cache data group