Class TSqlMapCacheModel
TSqlMapCacheModel corresponds to the <cacheModel> sql mapping configuration tag.
The results from a query Mapped Statement can be cached simply by specifying the CacheModel TSqlMapStatement::setCacheModel() property in <statement> tag. A cache model is a configured cache that is defined within the sql map configuration file. Cache models are configured using the <cacheModel> element.
The cache model uses a pluggable framework for supporting different types of
caches. The choice of cache is specified by the Implementation
setImplementation() property. The class name specified must be one of TSqlMapCacheTypes
.
The cache implementations, LRU and FIFO cache below do not persist across requests. That is, once the request is complete, all cache data is lost. These caches are useful queries that results in the same repeated data during the current request.
- TComponent
-
TSqlMapCacheModel
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/Configuration/TSqlMapCacheModel.php
public static
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
#
initialize( ISqLMapCache $cache = null )
Initialize the cache implementation, sets the actual cache contain if supplied. |
public
string
|
|
public
|
#
registerTriggerStatement(
Register a mapped statement that will trigger a cache flush. |
public
|
|
public
mixed
|
|
public
|
|
public
float
|
GLOBAL_RAISE_EVENT_LISTENER
|