PHP Class Prado\Data\SqlMap\DataMapper\TSqlMapApplicationCache

Since: 3.1
Inheritance: implements Prado\Caching\ICache
Afficher le fichier Open project: pradosoft/prado

Protected Properties

Свойство Type Description
$_cacheModel

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

add() public méthode

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

delete() public méthode

public delete ( $key )

flush() public méthode

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

get() public méthode

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

getCache() protected méthode

protected getCache ( ) : Prado\Caching\ICache
Résultat Prado\Caching\ICache Application cache instance.

getKeyList() protected méthode

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

getKeyListId() protected méthode

protected getKeyListId ( ) : string
Résultat string a KeyListID for the cache model.

set() public méthode

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

setKeyList() protected méthode

protected setKeyList ( $keyList )

Property Details

$_cacheModel protected_oe property

protected $_cacheModel