Файл: monst/Xsolla/Guzzle/Plugin/Cache/RevalidationInterface.php
Строк: 35
<?php
namespace GuzzlePluginCache;
use GuzzleHttpMessageRequestInterface;
use GuzzleHttpMessageResponse;
/**
* 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);
}