Class TSqlMapApplicationCache
TSqlMapApplicationCache uses the default Prado application cache for caching SqlMap results.
Method Summary |
void
|
add
( mixed $id, mixed $value, mixed $expire, mixed $dependency)
|
void
|
|
void
|
Deletes all items in the cache.
|
mixed
|
|
protected
ICache
|
|
void
|
set
( string $key, mixed $value, mixed $expire, mixed $dependency)
Stores a value identified by a key into cache.
|
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 |
throws | TSqlMapException not implemented. |
|
delete
public void delete |
(string $key ) |
Input |
string | $key | item to be deleted. |
Output |
Exception |
|
flush
Deletes all items in the cache.
|
get
public mixed get |
(mixed $key ) |
Input |
mixed | $key | |
Output |
mixed
| Gets a cached object with the specified key. |
Exception |
|
getCache
Output |
ICache
| Application cache instance. |
Exception |
|
set
public void set |
(string $key , mixed $value , mixed $expire , mixed $dependency ) |
Stores a value identified by a key into cache.
Input |
string | $key | the key identifying the value to be cached |
mixed | $value | the value to be cached |
mixed | $expire | |
mixed | $dependency | |
Output |
Exception |
|
|