kevinrob/guzzle-cache-middleware
RFC 7234-compliant HTTP cache middleware for Guzzle 6+. Add to a HandlerStack to transparently cache responses and speed up API calls. Supports PSR-7 and multiple backends: Laravel Cache, Flysystem, PSR-6/16, and WordPress object cache.
Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/7.0.0...v8.0.0-RC1
Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/6.0.0...7.0.0
static keyword instead of self by @jblz in https://github.com/Kevinrob/guzzle-cache-middleware/pull/189Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/v5.1.0...6.0.0
The inspect_all function has been changed to Utils::inspectAll #178
guzzlehttp/psr7Laravel cache duration changes #116 (PR #123)add TTL to PSR16 storage implementation @sergiuPHPAdd dynamic TTL for GreedyCacheStrategy (#98 et #100)
Example:
$request = (new Request('GET', 'http://test.com/'))
->withHeader(GreedyCacheStrategy::HEADER_TTL, 120);
$this->client->send($request);
New major version 3.0.0
delete method for removing request from cache #96How can I help you explore Laravel packages today?