Ubiquity 2.5.2
php rapid development framework
|
This class is responsible for storing values with MemCached. More...
Public Member Functions | |
__construct ($root, $postfix="", $cacheParams=[]) | |
Initializes the cache-provider. | |
addServer ($host, $port, $weight=null) | |
addServers (array $servers) | |
setSerializer ($serializer) | |
exists ($key) | |
Check if annotation-data for the key has been stored. | |
store ($key, $content, $tag=null) | |
Caches the given data with the given key. | |
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) | |
Public Member Functions inherited from AbstractDataCache | |
__construct ($root, $postfix='') | |
init () | |
expired ($key, $duration) | |
getRoot () | |
setRoot ($_root) | |
Protected Member Functions | |
getRealKey ($key) | |
Private Attributes | |
$cacheInstance | |
const | CONTENT = 'content' |
const | TAG = 'tag' |
const | TIME = 'time' |
Additional Inherited Members | |
Protected Attributes inherited from AbstractDataCache | |
$_root | |
$postfix | |
This class is responsible for storing values with MemCached.
Ubiquity\cache\system$MemCachedDriver This class is part of Ubiquity
Definition at line 17 of file MemCachedDriver.php.
__construct | ( | $root, | |
$postfix = "" , |
|||
$cacheParams = [ ] |
|||
) |
Initializes the cache-provider.
Definition at line 30 of file MemCachedDriver.php.
addServer | ( | $host, | |
$port, | |||
$weight = null |
|||
) |
Definition at line 43 of file MemCachedDriver.php.
addServers | ( | array | $servers | ) |
Definition at line 51 of file MemCachedDriver.php.
clear | ( | ) |
Clears all cache entries.
Reimplemented from AbstractDataCache.
Definition at line 118 of file MemCachedDriver.php.
clearCache | ( | $type | ) |
Reimplemented from AbstractDataCache.
Definition at line 137 of file MemCachedDriver.php.
exists | ( | $key | ) |
Check if annotation-data for the key has been stored.
string | $key | cache key |
Reimplemented from AbstractDataCache.
Definition at line 67 of file MemCachedDriver.php.
fetch | ( | $key | ) |
Fetches data stored for the given key.
string | $key | cache key |
Reimplemented from AbstractDataCache.
Definition at line 87 of file MemCachedDriver.php.
file_get_contents | ( | $key | ) |
return data stored for the given key.
string | $key | cache key |
Reimplemented from AbstractDataCache.
Definition at line 98 of file MemCachedDriver.php.
getCacheFiles | ( | $type | ) |
Reimplemented from AbstractDataCache.
Definition at line 122 of file MemCachedDriver.php.
getCacheInfo | ( | ) |
Reimplemented from AbstractDataCache.
Definition at line 147 of file MemCachedDriver.php.
getEntryKey | ( | $key | ) |
Reimplemented from AbstractDataCache.
Definition at line 151 of file MemCachedDriver.php.
|
protected |
Definition at line 77 of file MemCachedDriver.php.
getTimestamp | ( | $key | ) |
Returns the timestamp of the last cache update for the given key.
string | $key | cache key |
Reimplemented from AbstractDataCache.
Definition at line 108 of file MemCachedDriver.php.
remove | ( | $key | ) |
string | $key |
Reimplemented from AbstractDataCache.
Definition at line 113 of file MemCachedDriver.php.
setSerializer | ( | $serializer | ) |
Definition at line 57 of file MemCachedDriver.php.
store | ( | $key, | |
$code, | |||
$tag = null |
|||
) |
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 from AbstractDataCache.
Definition at line 73 of file MemCachedDriver.php.
|
private |
Definition at line 22 of file MemCachedDriver.php.
|
private |
Definition at line 23 of file MemCachedDriver.php.
|
private |
Definition at line 24 of file MemCachedDriver.php.
|
private |
Definition at line 25 of file MemCachedDriver.php.