## Class TSqlMapApplicationCache

Description

Implements interfaces:

- ICache

TSqlMapApplicationCache uses the default Prado application cache for caching SqlMap results.

- since: 3.1
- version: $Id: TSqlMapCache.php 2757 2010-01-15 14:47:40Z Christophe.Boulain $
- author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/SqlMap/DataMapper/TSqlMapCache.php (line 175)

Variable Summary
mixed $_cacheModel
Method Summary
TSqlMapApplicationCache __construct ([mixed $cacheModel = null], TSqlMapCacheModel $cacheModel.)
void add (mixed $id, mixed $value, mixed $expire, [mixed $dependency = null])
void delete (string $key)
void flush ()
mixed get (mixed $key)
ICache getCache ()
TList getKeyList ()
string getKeyListId ()
void set (string $key, mixed $value, mixed $expire, [mixed $dependency = null])
void setKeyList (mixed $keyList)
Variables
mixed $_cacheModel = null (line 177)

- access: protected

Methods
Constructor __construct (line 183)

Create a new cache with limited cache size.

- access: public

TSqlMapApplicationCache __construct ([mixed $cacheModel = null], TSqlMapCacheModel $cacheModel.)

- TSqlMapCacheModel $cacheModel.

add (line 290)

- access: public
- throws: TSqlMapException not implemented.

void add (mixed $id, mixed $value, mixed $expire, [mixed $dependency = null])
delete (line 221)

- access: public

void delete (string $key)

- string $key: item to be deleted.

flush (line 232)

Deletes all items in the cache, only for data cached by sqlmap cachemodel

- access: public

void flush ()
get (line 247)

- return: Gets a cached object with the specified key.
- access: public

mixed get (mixed $key)
getCache (line 282)

- return: Application cache instance.
- access: protected

ICache getCache ()
getKeyList (line 203)

Retreive keylist from cache or create it if it doesn't exists

- access: protected

TList getKeyList ()
getKeyListId (line 192)

- return: a KeyListID for the cache model.
- access: protected

string getKeyListId ()
set (line 268)

Stores a value identified by a key into cache.

- access: public

void set (string $key, mixed $value, mixed $expire, [mixed $dependency = null])

- string $key: the key identifying the value to be cached
- mixed $value: the value to be cached

setKeyList (line 213)

- access: protected

void setKeyList (mixed $keyList)

Documentation generated on Mon, 22 Feb 2010 12:18:41 +0000 by phpDocumentor 1.3.0RC4