Interface Guzzle\Plugin\Cache\CanCacheStrategyInterface

Implemented byGuzzle\Plugin\Cache\CallbackCanCacheStrategy, Guzzle\Plugin\Cache\DefaultCanCacheStrategy

Strategy used to determine if a request can be cached

Public Methods

Hide inherited methods

MethodDescriptionDefined By
canCacheRequest() Determine if a request can be cached Guzzle\Plugin\Cache\CanCacheStrategyInterface
canCacheResponse() Determine if a response can be cached Guzzle\Plugin\Cache\CanCacheStrategyInterface

Method Details

canCacheRequest() public abstract method

Determine if a request can be cached

public abstract bool canCacheRequest ( Guzzle\Http\Message\RequestInterface $request )
$request Guzzle\Http\Message\RequestInterface

Request to determine

canCacheResponse() public abstract method

Determine if a response can be cached

public abstract bool canCacheResponse ( Guzzle\Http\Message\Response $response )
$response Guzzle\Http\Message\Response

Response to determine