JCacheStorage
Description
Abstract cache storage handler
Located in /joomla/cache/storage.php (line 27)
JObject (Subpackage Base)
![]()
JCacheStorage (Subpackage Cache)
Direct descendents
Class | Description |
---|---|
![]() |
APC cache storage handler |
![]() |
eAccelerator cache storage handler |
![]() |
File cache storage handler |
Method Summary
Methods
Constructor
JCacheStorage
__construct
([array $options = array()])
- array $options: optional parameters
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Redefined in descendants as:
- JCacheStorageApc::__construct() : Constructor
- JCacheStorageEaccelerator::__construct() : Constructor
- JCacheStorageFile::__construct() : Constructor
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
boolean
clean
(string $group, string $mode)
- string $group: The cache data group
- string $mode: The mode for cleaning cache [group|notgroup]
Redefined in descendants as:
- JCacheStorageApc::clean() : Clean cache for a group given a mode.
- JCacheStorageEaccelerator::clean() : Clean cache for a group given a mode.
- JCacheStorageFile::clean() : Clean cache for a group given a mode.
Garbage collect expired cache data
boolean
gc
()
Redefined in descendants as:
- JCacheStorageEaccelerator::gc() : Garbage collect expired cache data
- JCacheStorageFile::gc() : Garbage collect expired cache data
Get cached data by id and group
mixed
get
(string $id, string $group, boolean $checkTime)
- string $id: The cache data id
- string $group: The cache data group
- boolean $checkTime: True to verify cache time expiration threshold
Redefinition of:
- JObject::get()
- Returns a property of the object or the default value if the property is not set.
Redefined in descendants as:
- JCacheStorageApc::get() : Get cached data from APC by id and group
- JCacheStorageEaccelerator::get() : Get cached data from eAccelerator by id and group
- JCacheStorageFile::get() : Get cached data from a file by id and group
Returns a reference to a cache storage hanlder object, only creating it if it doesn't already exist.
object A
&getInstance
([string $handler = 'file'], [ $options = array()])
- string $handler: The cache storage handler to instantiate
- $options
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:
- JCacheStorageApc::remove() : Remove a cached data entry by id and group
- JCacheStorageEaccelerator::remove() : Remove a cached data entry by id and group
- JCacheStorageFile::remove() : Remove a cached data file by id and group
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:
- JCacheStorageApc::store() : Store the data to APC by id and group
- JCacheStorageEaccelerator::store() : Store the data to eAccelerator by id and group
- JCacheStorageFile::store() : Store the data to a file by id and group
Test to see if the storage handler is available.
boolean
test
()
Redefined in descendants as:
- JCacheStorageApc::test() : Test to see if the cache storage is available.
- JCacheStorageEaccelerator::test() : Test to see if the cache storage is available.
- JCacheStorageFile::test() : Test to see if the cache storage is available.
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getPublicProperties()
JObject::set()
JObject::toString()
Documentation generated on Mon, 05 Mar 2007 21:26:55 +0000 by phpDocumentor 1.3.1