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.
CacheItemPoolInterface
✓ use Psr\Cache\CacheItemPoolInterface;
Use a PSR-6 cache pool to store and retrieve cached data.
use Psr\Cache\CacheItemPoolInterface;
function getCachedData(CacheItemPoolInterface $pool): string
{
$item = $pool->getItem('my_key');
if (!$item->isHit()) {
$item->set('fresh data');
$pool->save($item);
}
return $item->get();
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.