Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • 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
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

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

Interfaces

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

Class DefaultCacheStorage

Default cache storage implementation

Guzzle\Plugin\Cache\DefaultCacheStorage implements Guzzle\Plugin\Cache\CacheStorageInterface
Namespace: Guzzle\Plugin\Cache
Located at src/Guzzle/Plugin/Cache/DefaultCacheStorage.php
Methods summary
public
# __construct( mixed $cache, string $keyPrefix = '', integer $defaultTtl = 3600 )

Parameters

$cache
Cache used to store cache data
$keyPrefix
Provide an optional key prefix to prefix on all cache keys
$defaultTtl
Default cache TTL
public
# cache( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )

Cache an HTTP request

Cache an HTTP request

Parameters

$request
Request being cached
$response
Response to cache

Implementation of

Guzzle\Plugin\Cache\CacheStorageInterface::cache()
public
# delete( Guzzle\Http\Message\RequestInterface $request )

Deletes cache entries that match a request

Deletes cache entries that match a request

Parameters

$request
Request to delete from cache

Implementation of

Guzzle\Plugin\Cache\CacheStorageInterface::delete()
public
# purge( string $url )

Purge all cache entries for a given URL

Purge all cache entries for a given URL

Parameters

$url

Implementation of

Guzzle\Plugin\Cache\CacheStorageInterface::purge()
public null|Guzzle\Http\Message\Response
# fetch( Guzzle\Http\Message\RequestInterface $request )

Get a Response from the cache for a request

Get a Response from the cache for a request

Parameters

$request

Returns

null|Guzzle\Http\Message\Response

Implementation of

Guzzle\Plugin\Cache\CacheStorageInterface::fetch()
protected string
# getCacheKey( Guzzle\Http\Message\RequestInterface $request )

Hash a request URL into a string that returns cache metadata

Hash a request URL into a string that returns cache metadata

Parameters

$request

Returns

string
protected string
# getBodyKey( string $url, Guzzle\Http\EntityBodyInterface $body )

Create a cache key for a response's body

Create a cache key for a response's body

Parameters

$url
URL of the entry
$body
Response body

Returns

string
Properties summary
protected string $keyPrefix
#
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

#
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen