\Guzzle\Plugin\CacheRevalidationInterface

Cache revalidation interface

Summary

Methods
Constants
revalidate()
shouldRevalidate()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

revalidate()

revalidate(\Guzzle\Http\Message\RequestInterface  $request, \Guzzle\Http\Message\Response  $response) : boolean

Performs a cache revalidation

Parameters

\Guzzle\Http\Message\RequestInterface $request

Request to revalidate

\Guzzle\Http\Message\Response $response

Response that was received

Returns

boolean —

Returns true if the request can be cached

shouldRevalidate()

shouldRevalidate(\Guzzle\Http\Message\RequestInterface  $request, \Guzzle\Http\Message\Response  $response) : boolean

Returns true if the response should be revalidated

Parameters

\Guzzle\Http\Message\RequestInterface $request

Request to check

\Guzzle\Http\Message\Response $response

Response to check

Returns

boolean