Open Journal Systems  3.3.0
Guzzle\Plugin\Cache\CanCacheStrategyInterface Interface Reference
Inheritance diagram for Guzzle\Plugin\Cache\CanCacheStrategyInterface:
Guzzle\Plugin\Cache\DefaultCanCacheStrategy Guzzle\Plugin\Cache\CallbackCanCacheStrategy

Public Member Functions

 canCacheRequest (RequestInterface $request)
 
 canCacheResponse (Response $response)
 

Detailed Description

Strategy used to determine if a request can be cached

Definition at line 11 of file CanCacheStrategyInterface.php.

Member Function Documentation

◆ canCacheRequest()

Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCacheRequest ( RequestInterface  $request)

Determine if a request can be cached

Parameters
RequestInterface$requestRequest to determine
Returns
bool

Implemented in Guzzle\Plugin\Cache\CallbackCanCacheStrategy, and Guzzle\Plugin\Cache\DefaultCanCacheStrategy.

◆ canCacheResponse()

Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCacheResponse ( Response  $response)

Determine if a response can be cached

Parameters
Response$responseResponse to determine
Returns
bool

Implemented in Guzzle\Plugin\Cache\CallbackCanCacheStrategy, and Guzzle\Plugin\Cache\DefaultCanCacheStrategy.


The documentation for this interface was generated from the following file: