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 DefaultCacheStorage

Default cache storage implementation

Guzzle\Plugin\Cache\DefaultCacheStorage implements Guzzle\Plugin\Cache\CacheStorageInterface
Namespace: Guzzle\Plugin\Cache
Located at Guzzle/Plugin/Cache/DefaultCacheStorage.php
Methods summary
public
# __construct( Guzzle\Cache\CacheAdapterInterface $cache, integer $defaultTtl = 0 )

Parameters

$cache
Guzzle\Cache\CacheAdapterInterface
$cache Cache used to store cache data
$defaultTtl
integer
$defaultTtl Default cache TTL
public
# cache( string $key, Guzzle\Http\Message\Response $response, integer $ttl = null )

Cache an HTTP request

Cache an HTTP request

Parameters

$key
string
$key Cache key
$response
Guzzle\Http\Message\Response
$response Response to cache
$ttl
integer
$ttl Amount of time to cache the response

Implementation of

Guzzle\Plugin\Cache\CacheStorageInterface::cache()
public
# delete( string $key )

Delete an item from the cache

Delete an item from the cache

Parameters

$key
string
$key Cache key

Implementation of

Guzzle\Plugin\Cache\CacheStorageInterface::delete()
public null|Guzzle\Http\Message\Response
# fetch( string $key )

Get a Response from the cache

Get a Response from the cache

Parameters

$key
string
$key Cache key

Returns

null|Guzzle\Http\Message\Response

Implementation of

Guzzle\Plugin\Cache\CacheStorageInterface::fetch()
Properties summary
protected Guzzle\Cache\CacheAdapterInterface $cache
#

Cache used to store cache data

Cache used to store cache data

protected integer $defaultTtl
#

Default cache TTL

Default cache TTL

protected array $excludeResponseHeaders array( 'Connection', 'Keep-Alive', 'Proxy-Authenticate', 'Proxy-Authorization', 'TE', 'Trailers', 'Transfer-Encoding', 'Upgrade', 'Set-Cookie', 'Set-Cookie2' )
#

Headers are excluded from the caching (see RFC 2616:13.5.1)

Headers are excluded from the caching (see RFC 2616:13.5.1)

php-coveralls API documentation generated by ApiGen 2.8.0