Open Journal Systems  3.3.0
Guzzle\Plugin\Cache\RevalidationInterface Interface Reference
Inheritance diagram for Guzzle\Plugin\Cache\RevalidationInterface:
Guzzle\Plugin\Cache\DefaultRevalidation Guzzle\Plugin\Cache\DenyRevalidation Guzzle\Plugin\Cache\SkipRevalidation

Public Member Functions

 revalidate (RequestInterface $request, Response $response)
 
 shouldRevalidate (RequestInterface $request, Response $response)
 

Detailed Description

Cache revalidation interface

Definition at line 11 of file RevalidationInterface.php.

Member Function Documentation

◆ revalidate()

Guzzle\Plugin\Cache\RevalidationInterface::revalidate ( RequestInterface  $request,
Response  $response 
)

Performs a cache revalidation

Parameters
RequestInterface$requestRequest to revalidate
Response$responseResponse that was received
Returns
bool Returns true if the request can be cached

Implemented in Guzzle\Plugin\Cache\DefaultRevalidation, Guzzle\Plugin\Cache\DenyRevalidation, and Guzzle\Plugin\Cache\SkipRevalidation.

◆ shouldRevalidate()

Guzzle\Plugin\Cache\RevalidationInterface::shouldRevalidate ( RequestInterface  $request,
Response  $response 
)

Returns true if the response should be revalidated

Parameters
RequestInterface$requestRequest to check
Response$responseResponse to check
Returns
bool

Implemented in Guzzle\Plugin\Cache\DefaultRevalidation.


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