PHP 클래스 Prado\Data\SqlMap\Configuration\TSqlMapCacheModel

The results from a query Mapped Statement can be cached simply by specifying the {@link CacheModel TSqlMapStatement::setCacheModel()} property in tag. A cache model is a configured cache that is defined within the sql map configuration file. Cache models are configured using the element. The cache model uses a pluggable framework for supporting different types of caches. The choice of cache is specified by the {@link Implementation setImplementation()} property. The class name specified must be one of {@link 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.
부터: 3.1
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
flush ( ) Clears the cache.
get ( $key ) : mixed
getFlushInterval ( ) : integer
getHitRatio ( ) : float
getID ( ) : string
getImplementation ( ) : string
getImplementationClass ( ) : string
initialize ( $cache = null ) Initialize the cache implementation, sets the actual cache contain if supplied.
registerCacheType ( $type, $className )
registerTriggerStatement ( $mappedStatement ) Register a mapped statement that will trigger a cache flush.
set ( $key, $value )
setFlushInterval ( $value )
setID ( $value )
setImplementation ( $value )

메소드 상세

flush() 공개 메소드

Clears the cache.
public flush ( )

get() 공개 메소드

public get ( $key ) : mixed
리턴 mixed cached value.

getFlushInterval() 공개 메소드

public getFlushInterval ( ) : integer
리턴 integer cache duration.

getHitRatio() 공개 메소드

public getHitRatio ( ) : float
리턴 float cache hit ratio.

getID() 공개 메소드

public getID ( ) : string
리턴 string unique cache model identifier.

getImplementation() 공개 메소드

public getImplementation ( ) : string
리턴 string cache implements of TSqlMapCacheTypes, either 'Basic', 'LRU' or 'FIFO'.

getImplementationClass() 공개 메소드

public getImplementationClass ( ) : string
리턴 string cache implementation class name.

initialize() 공개 메소드

Initialize the cache implementation, sets the actual cache contain if supplied.
public initialize ( $cache = null )

registerCacheType() 공개 정적인 메소드

public static registerCacheType ( $type, $className )

registerTriggerStatement() 공개 메소드

Register a mapped statement that will trigger a cache flush.
public registerTriggerStatement ( $mappedStatement )

set() 공개 메소드

public set ( $key, $value )

setFlushInterval() 공개 메소드

public setFlushInterval ( $value )

setID() 공개 메소드

public setID ( $value )

setImplementation() 공개 메소드

public setImplementation ( $value )