PHP Interface Pinq\Caching\IQueryCache

Author: Elliot Levin ([email protected])
Afficher le fichier Open project: timetoogo/pinq

Méthodes publiques

Méthode Description
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.

Method Details

clear() public méthode

Clears all cached queries for the supplied function reflection.
public clear ( ) : void
Résultat void

getCacheAdapter() public méthode

Returns the underlying cache implementation.
public getCacheAdapter ( ) : Pinq\Caching\ICacheAdapter
Résultat Pinq\Caching\ICacheAdapter

remove() public méthode

Removes the cached query with the associated hash.
public remove ( string $hash ) : void
$hash string
Résultat void

save() public méthode

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

tryGet() public méthode

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