Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($context, $cacheId, $fallback) | |
flush () | |
getCache ($id) | |
getCacheTime () | |
setCache ($id, $value) | |
setEntireCache ($contents) | |
Public Member Functions inherited from GenericCache | |
close () | |
get ($id) | |
getCacheId () | |
getContext () | |
set ($id, $value) | |
Additional Inherited Members | |
Data Fields inherited from GenericCache | |
$cacheId | |
$cacheMiss | |
$context | |
$fallback | |
Provides caching based on XCache's variable store.
Definition at line 20 of file XCacheCache.inc.php.
XCacheCache::__construct | ( | $context, | |
$cacheId, | |||
$fallback | |||
) |
Instantiate a cache.
Reimplemented from GenericCache.
Definition at line 24 of file XCacheCache.inc.php.
References GenericCache\$cacheId, GenericCache\$context, and GenericCache\$fallback.
XCacheCache::flush | ( | ) |
Flush the cache.
Reimplemented from GenericCache.
Definition at line 31 of file XCacheCache.inc.php.
References GenericCache\getCacheId(), GenericCache\getContext(), and INDEX_FILE_LOCATION.
XCacheCache::getCache | ( | $id | ) |
Get an object from the cache.
$id |
Reimplemented from GenericCache.
Definition at line 51 of file XCacheCache.inc.php.
References GenericCache\$cacheMiss, GenericCache\getCacheId(), GenericCache\getContext(), and INDEX_FILE_LOCATION.
XCacheCache::getCacheTime | ( | ) |
Get the time at which the data was cached. Not implemented in this type of cache.
Reimplemented from GenericCache.
Definition at line 72 of file XCacheCache.inc.php.
XCacheCache::setCache | ( | $id, | |
$value | |||
) |
Set an object in the cache. This function should be overridden by subclasses.
$id | |
$value |
Reimplemented from GenericCache.
Definition at line 64 of file XCacheCache.inc.php.
References GenericCache\getCacheId(), GenericCache\getContext(), and INDEX_FILE_LOCATION.
Referenced by setEntireCache().
XCacheCache::setEntireCache | ( | $contents | ) |
Set the entire contents of the cache. WARNING: THIS DOES NOT FLUSH THE CACHE FIRST!
Reimplemented from GenericCache.
Definition at line 80 of file XCacheCache.inc.php.
References setCache().