mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-30 17:06:04 +03:00
31 lines
649 B
PHP
31 lines
649 B
PHP
|
<?php
|
||
|
|
||
|
namespace Guzzle\Plugin\Cache;
|
||
|
|
||
|
use Guzzle\Http\Message\RequestInterface;
|
||
|
use Guzzle\Http\Message\Response;
|
||
|
|
||
|
/**
|
||
|
* Strategy used to determine if a request can be cached
|
||
|
*/
|
||
|
interface CanCacheStrategyInterface
|
||
|
{
|
||
|
/**
|
||
|
* Determine if a request can be cached
|
||
|
*
|
||
|
* @param RequestInterface $request Request to determine
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function canCacheRequest(RequestInterface $request);
|
||
|
|
||
|
/**
|
||
|
* Determine if a response can be cached
|
||
|
*
|
||
|
* @param Response $response Response to determine
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function canCacheResponse(Response $response);
|
||
|
}
|