Registry /
utility / symfony-cache-contracts
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.
CacheInterface
✓ use Symfony\Contracts\Cache\CacheInterface;
Use the cache contract interface
use Symfony\Contracts\Cache\CacheInterface;
// Implement or use a cache adapter
$cache = new \Symfony\Component\Cache\Adapter\FilesystemAdapter();
$value = $cache->get('key', function () { return 'computed'; });
Debug
Known issues
No known issues recorded.
Upgrade
Version history
6.4.32latest on Packagist
Audit
Dependencies
No dependency data recorded yet.