Ubiquity 2.5.2
php rapid development framework
|
This class is responsible for storing Arrays in PHP files. More...
Public Member Functions | |
__construct ($root, $postfix='') | |
init () | |
exists ($key) | |
Check if annotation-data for the key has been stored. | |
expired ($key, $duration) | |
store ($key, $code, $tag=null) | |
Caches the given data with the given key. | |
getRoot () | |
setRoot ($_root) | |
fetch ($key) | |
Fetches data stored for the given key. | |
file_get_contents ($key) | |
return data stored for the given key. | |
getTimestamp ($key) | |
Returns the timestamp of the last cache update for the given key. | |
remove ($key) | |
clear () | |
Clears all cache entries. | |
getCacheFiles ($type) | |
clearCache ($type) | |
getCacheInfo () | |
getEntryKey ($key) | |
Protected Attributes | |
$_root | |
$postfix | |
This class is responsible for storing Arrays in PHP files.
Inspired by (c) Rasmus Schultz rasmu.nosp@m.s@mi.nosp@m.ndpla.nosp@m.y.dk https://github.com/mindplay-dk/php-annotations Ubiquity\cache\system$AbstractDataCache This class is part of Ubiquity
Definition at line 21 of file AbstractDataCache.php.
__construct | ( | $root, | |
$postfix = '' |
|||
) |
Reimplemented in ApcuCache.
Definition at line 25 of file AbstractDataCache.php.
|
abstract |
Clears all cache entries.
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
|
abstract |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
|
abstract |
Check if annotation-data for the key has been stored.
string | $key | cache key |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
expired | ( | $key, | |
$duration | |||
) |
Definition at line 41 of file AbstractDataCache.php.
|
abstract |
Fetches data stored for the given key.
string | $key | cache key |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
|
abstract |
return data stored for the given key.
string | $key | cache key |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
|
abstract |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
getCacheInfo | ( | ) |
Reimplemented in MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
Definition at line 114 of file AbstractDataCache.php.
|
abstract |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
getRoot | ( | ) |
Definition at line 63 of file AbstractDataCache.php.
|
abstract |
Returns the timestamp of the last cache update for the given key.
string | $key | cache key |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
init | ( | ) |
Definition at line 30 of file AbstractDataCache.php.
|
abstract |
string | $key |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
setRoot | ( | $_root | ) |
mixed | $_root |
Definition at line 71 of file AbstractDataCache.php.
|
abstract |
Caches the given data with the given key.
string | $key | cache key |
mixed | $code | the source-code to be cached |
string | $tag | the item tag |
CacheException |
Reimplemented in ApcuCache, MemCachedDriver, PhpFastCacheDriver, and RedisCacheDriver.
|
protected |
Definition at line 22 of file AbstractDataCache.php.
|
protected |
Definition at line 23 of file AbstractDataCache.php.