extends |
Smarty_CacheResource_KeyValueStore |
---|
Memcache CacheResource CacheResource Implementation based on the KeyValueStore API to use memcache as the storage resource for Smarty's output caching. Note that memcache has a limitation of 256 characters per cache-key. To avoid complications all cache-keys are translated to a sha1 hash.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
__construct()
Smarty_CacheResource_Memcache constructor.
Smarty_CacheResource_Memcache constructor. |
# | ||||
protected
|
read(array $keys): array
Read values for a set of keys from cache
Read values for a set of keys from cache Parameters
Returnslist of values with the given keys used as indexes Implements |
# | ||||
protected
|
write(array $keys, int $expire = null): boolean
Save values for a set of keys to cache
Save values for a set of keys to cache Parameters
Returnstrue on success, false on failure Implements |
# | ||||
protected
|
delete(array $keys): boolean
Remove values from cache
Remove values from cache Parameters
Returnstrue on success, false on failure Implements |
# | ||||
protected
|
purge(): boolean
Remove *all* values from cache
Remove all values from cache Returnstrue on success, false on failure Overrides |
# |
Methods inherited from Smarty_CacheResource |
---|
getCachedContent(), locked(), load() |
Properties | |||
---|---|---|---|
protected
|
Memcache
|
$memcache = null
|
# |
Properties inherited from Smarty_CacheResource_KeyValueStore |
---|
$contents, $timestamps |
Properties inherited from Smarty_CacheResource |
---|
$sysplugins |