1: <?php
2:
3: namespace Guzzle\Plugin\Cache;
4:
5: use Guzzle\Http\Message\RequestInterface;
6: use Guzzle\Http\Message\Response;
7:
8: /**
9: * Cache revalidation interface
10: */
11: interface RevalidationInterface
12: {
13: /**
14: * Performs a cache revalidation
15: *
16: * @param RequestInterface $request Request to revalidate
17: * @param Response $response Response that was received
18: *
19: * @return bool Returns true if the request can be cached
20: */
21: public function revalidate(RequestInterface $request, Response $response);
22: }
23: