Interface Guzzle\Plugin\Cache\RevalidationInterface

Implemented byGuzzle\Plugin\Cache\DefaultRevalidation, Guzzle\Plugin\Cache\DenyRevalidation, Guzzle\Plugin\Cache\SkipRevalidation

Cache revalidation interface

Public Methods

Hide inherited methods

MethodDescriptionDefined By
revalidate() Performs a cache revalidation Guzzle\Plugin\Cache\RevalidationInterface
shouldRevalidate() Returns true if the response should be revalidated Guzzle\Plugin\Cache\RevalidationInterface

Method Details

revalidate() public abstract method

Performs a cache revalidation

public abstract bool revalidate ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )
$request Guzzle\Http\Message\RequestInterface

Request to revalidate

$response Guzzle\Http\Message\Response

Response that was received

return bool

Returns true if the request can be cached

shouldRevalidate() public abstract method

Returns true if the response should be revalidated

public abstract bool shouldRevalidate ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )
$request Guzzle\Http\Message\RequestInterface

Request to check

$response Guzzle\Http\Message\Response

Response to check