Interface Guzzle\Plugin\Cache\CacheStorageInterface

Implemented byGuzzle\Plugin\Cache\DefaultCacheStorage

Interface used to cache HTTP requests

Public Methods

Hide inherited methods

MethodDescriptionDefined By
cache() Cache an HTTP request Guzzle\Plugin\Cache\CacheStorageInterface
delete() Deletes cache entries that match a request Guzzle\Plugin\Cache\CacheStorageInterface
fetch() Get a Response from the cache for a request Guzzle\Plugin\Cache\CacheStorageInterface
purge() Purge all cache entries for a given URL Guzzle\Plugin\Cache\CacheStorageInterface

Method Details

cache() public abstract method

Cache an HTTP request

public abstract void cache ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )
$request Guzzle\Http\Message\RequestInterface

Request being cached

$response Guzzle\Http\Message\Response

Response to cache

delete() public abstract method

Deletes cache entries that match a request

public abstract void delete ( Guzzle\Http\Message\RequestInterface $request )
$request Guzzle\Http\Message\RequestInterface

Request to delete from cache

fetch() public abstract method

Get a Response from the cache for a request

public abstract null|Guzzle\Http\Message\Response fetch ( Guzzle\Http\Message\RequestInterface $request )
$request Guzzle\Http\Message\RequestInterface
purge() public abstract method

Purge all cache entries for a given URL

public abstract void purge ( $url )
$url string