Interface ICache
ICache interface.
This interface must be implemented by cache managers.
Direct known implementers
TCache, TFastSqlMapApplicationCache, TSqlMapApplicationCache, TSqlMapCacheIndirect known implementers
TAPCCache, TDbCache, TEACache, TMemCache, TSqliteCache, TSqlMapFifoCache, TSqlMapLruCache, TXCache
Package: System
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at interfaces.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at interfaces.php
public
mixed
|
|
public
boolean
|
#
set( string $id, mixed $value, integer $expire = 0,
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. |
public
boolean
|
#
add( string $id, mixed $value, integer $expire = 0,
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
boolean
|
|
public
|
#
flush( )
Deletes all values from cache. Be careful of performing this operation if the cache is shared by multiple applications. |