forked from lino/radar-wp
Initial import.
This commit is contained in:
commit
86383280c9
428 changed files with 68738 additions and 0 deletions
32
vendor/guzzle/plugin-cache/Guzzle/Plugin/Cache/RevalidationInterface.php
vendored
Normal file
32
vendor/guzzle/plugin-cache/Guzzle/Plugin/Cache/RevalidationInterface.php
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace Guzzle\Plugin\Cache;
|
||||
|
||||
use Guzzle\Http\Message\RequestInterface;
|
||||
use Guzzle\Http\Message\Response;
|
||||
|
||||
/**
|
||||
* Cache revalidation interface
|
||||
*/
|
||||
interface RevalidationInterface
|
||||
{
|
||||
/**
|
||||
* Performs a cache revalidation
|
||||
*
|
||||
* @param RequestInterface $request Request to revalidate
|
||||
* @param Response $response Response that was received
|
||||
*
|
||||
* @return bool Returns true if the request can be cached
|
||||
*/
|
||||
public function revalidate(RequestInterface $request, Response $response);
|
||||
|
||||
/**
|
||||
* Returns true if the response should be revalidated
|
||||
*
|
||||
* @param RequestInterface $request Request to check
|
||||
* @param Response $response Response to check
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function shouldRevalidate(RequestInterface $request, Response $response);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue