Test to see if the cache storage is available.
static boolean
isSupported
()
Redefinition of:
- JCacheStorage::isSupported()
- Test to see if the storage handler is available.
Constructor
JCacheStorageMemcache
__construct
([array $options = array()])
-
array
$options: Optional parameters.
Redefinition of:
- JCacheStorage::__construct()
- Constructor
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
Redefinition of:
- JCacheStorage::clean()
- Clean cache for a group given a mode.
Get cached data from memcache 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
Return memcache connection object
object memcache
getConnection
()
Lock cached item - override parent as this is more efficient
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
Redefinition of:
- JCacheStorage::lock()
- Lock cached item
Lock cache index
boolean
lockindex
()
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 to memcache 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
Unlock cached item - override parent for cacheid compatibility with lock
boolean
unlock
(string $id, [string $group = null])
-
string
$id: The cache data id
-
string
$group: The cache data group
Redefinition of:
- JCacheStorage::unlock()
- Unlock cached item
Unlock cache index
boolean
unlockindex
()
Inherited Methods
Inherited From JCacheStorage
JCacheStorage::__construct()
JCacheStorage::addIncludePath()
JCacheStorage::clean()
JCacheStorage::gc()
JCacheStorage::get()
JCacheStorage::getAll()
JCacheStorage::getInstance()
JCacheStorage::isSupported()
JCacheStorage::lock()
JCacheStorage::remove()
JCacheStorage::store()
JCacheStorage::test()
JCacheStorage::unlock()
JCacheStorage::_getCacheId()