NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface RevalidationInterface

Cache revalidation interface

### Direct known implementers

`Guzzle\Plugin\Cache\DefaultRevalidation`

### Indirect known implementers

`Guzzle\Plugin\Cache\DenyRevalidation`, `Guzzle\Plugin\Cache\SkipRevalidation`

Namespace: Guzzle\Plugin\Cache
Located at Guzzle/Plugin/Cache/RevalidationInterface.php

## Methods summary

- `public` `revalidate ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )`

  Performs a cache revalidation

- `public` `shouldRevalidate ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )`

  Returns true if the response should be revalidated

## Methods detail

# `public boolean`
`revalidate( `Guzzle\Http\Message\RequestInterface` $request, `Guzzle\Http\Message\Response` $response )`

Performs a cache revalidation

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request to revalidate
$response
  ``Guzzle\Http\Message\Response``
  $response Response that was received

#### Returns

`boolean`
Returns true if the request can be cached
# `public boolean`
`shouldRevalidate( `Guzzle\Http\Message\RequestInterface` $request, `Guzzle\Http\Message\Response` $response )`

Returns true if the response should be revalidated

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request to check
$response
  ``Guzzle\Http\Message\Response``
  $response Response to check

#### Returns

`boolean`

### Magic methods summary