Class TSqlMapApplicationCache

Description

Implements interfaces:

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

  • author: Wei Zhuo <weizho[at]gmail[dot]com>
  • version: $Id: TSqlMapCache.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.1

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


	
			
Variable Summary
mixed $_cacheModel
Method Summary
TSqlMapApplicationCache __construct ([ $cacheModel = null], TSqlMapCacheModel $cacheModel.)
void add ( $id,  $value, [ $expire = 0], [ $dependency = null])
void delete (string $key)
void flush ()
mixed get ( $key)
string getKeyListId ()
void set (string $key, mixed $value, [ $expire = 0], [ $dependency = null])
void setKeyList ( $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 ([ $cacheModel = null], TSqlMapCacheModel $cacheModel.)
add (line 290)
  • throws: TSqlMapException not implemented.
  • access: public
void add ( $id,  $value, [ $expire = 0], [ $dependency = null])
  • $id
  • $value
  • $expire
  • $dependency
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 ( $key)
  • $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, [ $expire = 0], [ $dependency = null])
  • string $key: the key identifying the value to be cached
  • mixed $value: the value to be cached
  • $expire
  • $dependency
setKeyList (line 213)
  • access: protected
void setKeyList ( $keyList)
  • $keyList

Documentation generated on Mon, 25 Jun 2012 14:39:15 +0200 by phpDocumentor 1.4.3