Registry / utility / cache-cache

cache-cache

JSON →
library1.0.0phppackagistunverified

Library of all the php-cache adapters providing a PSR-6 and PSR-16 caching interface.

composer require cache/cache
INSTALL
IMPORT
SIG · CACHE-CACHE
C
cache-cache
utilityphpv1.0.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.

FilesystemCachePool
✓ use Cache\Adapter\Filesystem\FilesystemCachePool;

Cache a value using filesystem adapter

use Cache\Adapter\Filesystem\FilesystemCachePool; use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; $filesystemAdapter = new Local(__DIR__.'/cache'); $filesystem = new Filesystem($filesystemAdapter); $pool = new FilesystemCachePool($filesystem); $item = $pool->getItem('key'); if (!$item->isHit()) { $item->set('value'); $pool->save($item); } echo $item->get();
Debug
Known issues
gotchaThis package is a meta-package that requires installing specific adapters separately.
fix
Install individual adapters like cache/filesystem-adapter or cache/redis-adapter.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cache-cache — pip install cache-cache · libregistry