Open Journal Systems  3.3.0
Guzzle\Plugin\Cache\CacheStorageInterface Interface Reference
Inheritance diagram for Guzzle\Plugin\Cache\CacheStorageInterface:
Guzzle\Plugin\Cache\DefaultCacheStorage

Public Member Functions

 cache (RequestInterface $request, Response $response)
 
 delete (RequestInterface $request)
 
 fetch (RequestInterface $request)
 
 purge ($url)
 

Detailed Description

Interface used to cache HTTP requests

Definition at line 11 of file CacheStorageInterface.php.

Member Function Documentation

◆ cache()

Guzzle\Plugin\Cache\CacheStorageInterface::cache ( RequestInterface  $request,
Response  $response 
)

Cache an HTTP request

Parameters
RequestInterface$requestRequest being cached
Response$responseResponse to cache

Implemented in Guzzle\Plugin\Cache\DefaultCacheStorage.

◆ delete()

Guzzle\Plugin\Cache\CacheStorageInterface::delete ( RequestInterface  $request)

Deletes cache entries that match a request

Parameters
RequestInterface$requestRequest to delete from cache

Implemented in Guzzle\Plugin\Cache\DefaultCacheStorage.

◆ fetch()

Guzzle\Plugin\Cache\CacheStorageInterface::fetch ( RequestInterface  $request)

Get a Response from the cache for a request

Parameters
RequestInterface$request
Returns
null|Response

Implemented in Guzzle\Plugin\Cache\DefaultCacheStorage.

◆ purge()

Guzzle\Plugin\Cache\CacheStorageInterface::purge (   $url)

Purge all cache entries for a given URL

Parameters
string$url

Implemented in Guzzle\Plugin\Cache\DefaultCacheStorage.


The documentation for this interface was generated from the following file: