Class \Prado\Data\SqlMap\Configuration\TSqlMapCacheModel
The results from a query Mapped Statement can be cached simply by specifying
the \Prado\Data\SqlMap\Configuration\CacheModel property in
The cache model uses a pluggable framework for supporting different types of caches. The choice of cache is specified by the \Prado\Data\SqlMap\Configuration\Implementation 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.
Class hierarchy
Author: Wei Zhuo <weizho[at]gmail[dot]com>Since: 3.1
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
initialize([TSqlMapCache $cache = null ]) : mixed
Initialize the cache implementation, sets the actual cache contain if supplied.
|
public
static
|
|
public
|
registerTriggerStatement(TMappedStatement $mappedStatement) : mixed
Register a mapped statement that will trigger a cache flush.
|
public
|
|
public
|
|
public
|
|
public
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |