PHP Class Kevinrob\GuzzleCache\Strategy\PublicCacheStrategy

You can share the storage between applications. For example, a response with cache-control header "private, max-age=60" will be NOT cached by this strategy. The rules applied are from RFC 7234.
See also: https://tools.ietf.org/html/rfc7234
Inheritance: extends PrivateCacheStrategy
Show file Open project: kevinrob/guzzle-cache-middleware Class Usage Examples

Public Methods

Method Description
__construct ( Kevinrob\GuzzleCache\Storage\CacheStorageInterface $cache = null )

Protected Methods

Method Description
getCacheObject ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )

Method Details

__construct() public method

public __construct ( Kevinrob\GuzzleCache\Storage\CacheStorageInterface $cache = null )
$cache Kevinrob\GuzzleCache\Storage\CacheStorageInterface

getCacheObject() protected method

protected getCacheObject ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface