PHP Class Prado\Data\SqlMap\DataMapper\TSqlMapCache

Since: 3.1
Inheritance: implements Prado\Caching\ICache
显示文件 Open project: pradosoft/prado

Protected Properties

Property Type Description
$_cache
$_cacheModel
$_cacheSize
$_keyList

Public Methods

Method Description
__construct ( $cacheModel = null ) Create a new cache with limited cache size.
add ( $id, $value, $expire, $dependency = null )
delete ( $key ) : object
flush ( ) Clears the cache.
getCacheSize ( ) : integer
setCacheSize ( $value ) Maximum number of items to cache. Default size is 100.

Method Details

__construct() public method

Create a new cache with limited cache size.
public __construct ( $cacheModel = null )

add() public method

public add ( $id, $value, $expire, $dependency = null )

delete() public method

public delete ( $key ) : object
return object the object removed if exists, null otherwise.

flush() public method

Clears the cache.
public flush ( )

getCacheSize() public method

public getCacheSize ( ) : integer
return integer cache size.

setCacheSize() public method

Maximum number of items to cache. Default size is 100.
public setCacheSize ( $value )

Property Details

$_cache protected_oe property

protected $_cache

$_cacheModel protected_oe property

protected $_cacheModel

$_cacheSize protected_oe property

protected $_cacheSize

$_keyList protected_oe property

protected $_keyList