Packages:
System
System.Caching
System.Collections
System.Data
System.Data.ActiveRecord
System.Data.ActiveRecord.Relations
System.Data.ActiveRecord.Scaffold
System.Data.ActiveReecord.Scaffold.InputBuilder
System.Data.Commom.Sqlite
System.Data.Common
System.Data.Common.Mssql
System.Data.Common.Mysql
System.Data.Common.Oracle
System.Data.Common.Pgsql
System.Data.Common.Sqlite
System.Data.DataGateway
System.Data.SqlMap
System.Data.SqlMap.Configuration
System.Data.SqlMap.Statements
System.Exceptions
System.I18N
System.IO
System.Security
System.Util
System.Web
System.Web.Services
System.Web.UI
System.Web.UI.ActiveControls
System.Web.UI.WebControls
System.Web.UI.WebControls.assets
System.Xml


Classes:
Keyword

Class TSqlMapApplicationCache


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

Since: 3.1
Author: Wei Zhuo <weizho[at]gmail[dot]com>

Constructor Summary
public
__construct Array
Create a new cache with limited cache size.

Method Summary
void
add ( mixed $id, mixed $value, mixed $expire, mixed $dependency)
void
delete ( string $key)
void
flush ()
Deletes all items in the cache, only for data cached by sqlmap cachemodel
mixed
get ( mixed $key)
protected  ICache
protected  TList
Retreive keylist from cache or create it if it doesn't exists
protected  string
void
set ( string $key, mixed $value, mixed $expire, mixed $dependency)
Stores a value identified by a key into cache.
protected  void
setKeyList ( mixed $keyList)

Constructor Details

__construct

public __construct Array

Create a new cache with limited cache size.


Method Details

add

public void add (mixed $id , mixed $value , mixed $expire , mixed $dependency )

Input
mixed$id
mixed$value
mixed$expire
mixed$dependency
Output
Exception
throwsTSqlMapException not implemented.

delete

public void delete (string $key )

Input
string$keyitem to be deleted.
Output
Exception

flush

public void flush ()

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

Output
Exception

get

public mixed get (mixed $key )

Input
mixed$key
Output
mixed Gets a cached object with the specified key.
Exception

getCache

protected ICache getCache ()

Output
ICache Application cache instance.
Exception

getKeyList

protected TList getKeyList ()

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

Output
Exception

getKeyListId

protected string getKeyListId ()

Output
string a KeyListID for the cache model.
Exception

set

public void set (string $key , mixed $value , mixed $expire , mixed $dependency )

Stores a value identified by a key into cache.

Input
string$keythe key identifying the value to be cached
mixed$valuethe value to be cached
mixed$expire
mixed$dependency
Output
Exception

setKeyList

protected void setKeyList (mixed $keyList )

Input
mixed$keyList
Output
Exception