Registry / caching / amphp-cache

amphp-cache

JSON →
library2.0.1phppackagistunverified

A fiber-aware cache API based on Amp and Revolt.

composer require amphp/cache
INSTALL
IMPORT
SIG · AMPHP-CACHE
A
amphp-cache
cachingphpv2.0.1
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.

Cache
use Amp\Cache\Cache;

Store and retrieve a cache entry.

use Amp\Cache\Cache; $cache = new Cache(); $cache->set('key', 'value'); $value = $cache->get('key');
Debug
Known issues
breakingRequires PHP 8.1+ and fiber support.
fix
Use PHP 8.1 or higher with fibers enabled.
affects: >=2.0.0
Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
39
Amazon
1
OpenAI (training)
1
Resources
amphp-cache — pip install amphp-cache · libregistry