PHP Интерфейс Pinq\Caching\IQueryCache

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
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