Interface \Prado\Caching\ICache
ICache interface.
Namespace: \Prado\CachingThis interface must be implemented by cache managers.
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
public
|
add(string $id, mixed $value[, int $expire = 0 ][, ICacheDependency $dependency = null ]) : bool
Stores a value identified by a key into cache if the cache does not contain this key.
Nothing will be done if the cache already contains the key. |
public
|
|
public
|
flush() : mixed
Deletes all values from cache.
Be careful of performing this operation if the cache is shared by multiple applications. |
public
|
|
public
|
set(string $id, mixed $value[, int $expire = 0 ][, ICacheDependency $dependency = null ]) : bool
Stores a value identified by a key into cache.
If the cache already contains such a key, the existing value and expiration time will be replaced with the new ones. |
|