PHP Class Prado\Data\SqlMap\DataMapper\TSqlMapApplicationCache

Since: 3.1
Inheritance: implements Prado\Caching\ICache
Datei anzeigen Open project: pradosoft/prado

Protected Properties

Property Type Description
$_cacheModel

Public Methods

Method Description
__construct ( $cacheModel = null ) Create a new cache with limited cache size.
add ( $id, $value, $expire, $dependency = null )
delete ( $key )
flush ( ) Deletes all items in the cache, only for data cached by sqlmap cachemodel
get ( $key ) : mixed
set ( $key, $value, $expire, $dependency = null ) Stores a value identified by a key into cache.

Protected Methods

Method Description
getCache ( ) : Prado\Caching\ICache
getKeyList ( ) : Prado\Collections\TList Retreive keylist from cache or create it if it doesn't exists
getKeyListId ( ) : string
setKeyList ( $keyList )

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 )

flush() public method

Deletes all items in the cache, only for data cached by sqlmap cachemodel
public flush ( )

get() public method

public get ( $key ) : mixed
return mixed Gets a cached object with the specified key.

getCache() protected method

protected getCache ( ) : Prado\Caching\ICache
return Prado\Caching\ICache Application cache instance.

getKeyList() protected method

Retreive keylist from cache or create it if it doesn't exists
protected getKeyList ( ) : Prado\Collections\TList
return Prado\Collections\TList

getKeyListId() protected method

protected getKeyListId ( ) : string
return string a KeyListID for the cache model.

set() public method

Stores a value identified by a key into cache.
public set ( $key, $value, $expire, $dependency = null )

setKeyList() protected method

protected setKeyList ( $keyList )

Property Details

$_cacheModel protected_oe property

protected $_cacheModel