PHP Interface Pinq\Caching\IQueryCache

Author: Elliot Levin ([email protected])
Datei anzeigen Open project: timetoogo/pinq

Public Methods

Method 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 method

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

getCacheAdapter() public method

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

remove() public method

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

save() public method

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

tryGet() public method

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