Registry / http-client / php-http-cache-plugin

php-http-cache-plugin

JSON →
library2.1.0phppackagistunverified

PSR-6 Cache plugin for HTTPlug

composer require php-http/cache-plugin
INSTALL
IMPORT
SIG · PHP-HTTP-CACHE-PLU
P
php-http-cache-plugin
http-clientphpv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CachePlugin
use Http\Client\Common\Plugin\CachePlugin;

Create a cache plugin for HTTP client

use Http\Client\Common\Plugin\CachePlugin; use Http\Message\StreamFactory\GuzzleStreamFactory; $cachePlugin = new CachePlugin($cachePool, new GuzzleStreamFactory());
Debug
Known issues
breakingRequires a PSR-6 cache implementation
fix
Install a cache library like symfony/cache
affects: >=2.0
Upgrade
Version history
2.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
php-http-cache-plugin — pip install php-http-cache-plugin · libregistry