PHP 인터페이스 Pinq\Caching\IQueryCache

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/pinq

공개 메소드들

메소드 설명
clear ( ) : void Clears all cached queries for the supplied function reflection.
getCacheAdapter ( ) : Pinq\Caching\ICacheAdapter Returns the underlying cache implementation.
remove ( string $hash ) : void Removes the cached query with the associated hash.
save ( string $hash, Pinq\Queries\IQuery $query ) : void Cache the supplied query associated with its hash.
tryGet ( string $hash ) : Pinq\Queries\IQuery | null Attempt to get the cached query of the supplied hash.

메소드 상세

clear() 공개 메소드

Clears all cached queries for the supplied function reflection.
public clear ( ) : void
리턴 void

getCacheAdapter() 공개 메소드

Returns the underlying cache implementation.
public getCacheAdapter ( ) : Pinq\Caching\ICacheAdapter
리턴 Pinq\Caching\ICacheAdapter

remove() 공개 메소드

Removes the cached query with the associated hash.
public remove ( string $hash ) : void
$hash string
리턴 void

save() 공개 메소드

Cache the supplied query associated with its hash.
public save ( string $hash, Pinq\Queries\IQuery $query ) : void
$hash string
$query Pinq\Queries\IQuery
리턴 void

tryGet() 공개 메소드

Attempt to get the cached query of the supplied hash.
public tryGet ( string $hash ) : Pinq\Queries\IQuery | null
$hash string
리턴 Pinq\Queries\IQuery | null