Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • CachePlugin
  • CallbackCacheKeyProvider
  • CallbackCanCacheStrategy
  • DefaultCacheKeyProvider
  • DefaultCacheStorage
  • DefaultCanCacheStrategy
  • DefaultRevalidation
  • DenyRevalidation
  • SkipRevalidation

Interfaces

  • CacheKeyProviderInterface
  • CacheStorageInterface
  • CanCacheStrategyInterface
  • RevalidationInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class DefaultRevalidation

Default revalidation strategy

Guzzle\Plugin\Cache\DefaultRevalidation implements Guzzle\Plugin\Cache\RevalidationInterface
Namespace: Guzzle\Plugin\Cache
Located at Guzzle/Plugin/Cache/DefaultRevalidation.php
Methods summary
public
# __construct( Guzzle\Plugin\Cache\CacheKeyProviderInterface $cacheKey, Guzzle\Plugin\Cache\CacheStorageInterface $cache, Guzzle\Plugin\Cache\CachePlugin $plugin )

Parameters

$cacheKey
Guzzle\Plugin\Cache\CacheKeyProviderInterface
$cacheKey Cache key strategy
$cache
Guzzle\Plugin\Cache\CacheStorageInterface
$cache Cache storage
$plugin
Guzzle\Plugin\Cache\CachePlugin
$plugin Cache plugin to remove from revalidation requests
public boolean
# revalidate( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )

Performs a cache revalidation

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

Implementation of

Guzzle\Plugin\Cache\RevalidationInterface::revalidate()
protected
# handleBadResponse( Guzzle\Http\Exception\BadResponseException $e )

Handles a bad response when attempting to revalidate

Handles a bad response when attempting to revalidate

Parameters

$e
Guzzle\Http\Exception\BadResponseException
$e Exception encountered

Throws

Guzzle\Http\Exception\BadResponseException
protected Guzzle\Http\Message\RequestInterface
# createRevalidationRequest( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )

Creates a request to use for revalidation

Creates a request to use for revalidation

Parameters

$request
Guzzle\Http\Message\RequestInterface
$request Request
$response
Guzzle\Http\Message\Response
$response Response to revalidate

Returns

Guzzle\Http\Message\RequestInterface
returns a revalidation request
protected boolean
# handle200Response( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $validateResponse )

Handles a 200 response response from revalidating. The server does not support validation, so use this response.

Handles a 200 response response from revalidating. The server does not support validation, so use this response.

Parameters

$request
Guzzle\Http\Message\RequestInterface
$request Request that was sent
$validateResponse
Guzzle\Http\Message\Response
$validateResponse Response received

Returns

boolean
Returns true if valid, false if invalid
protected boolean
# handle304Response( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $validateResponse, Guzzle\Http\Message\Response $response )

Handle a 304 response and ensure that it is still valid

Handle a 304 response and ensure that it is still valid

Parameters

$request
Guzzle\Http\Message\RequestInterface
$request Request that was sent
$validateResponse
Guzzle\Http\Message\Response
$validateResponse Response received
$response
Guzzle\Http\Message\Response
$response Original cached response

Returns

boolean
Returns true if valid, false if invalid
Properties summary
protected Guzzle\Plugin\Cache\CacheKeyProviderInterface $cacheKey
#

Strategy used to create cache keys

Strategy used to create cache keys

protected Guzzle\Plugin\Cache\CacheStorageInterface $storage
#

Cache object storing cache data

Cache object storing cache data

protected Guzzle\Plugin\Cache\CachePlugin $plugin
#
php-coveralls API documentation generated by ApiGen 2.8.0