Registry / utility / symfony-cache-contracts

symfony-cache-contracts

JSON →
library6.4.32phppackagistunverified

Generic abstractions related to caching

composer require symfony/cache-contracts
INSTALL
IMPORT
SIG · SYMFONY-CACHE-CONT
S
symfony-cache-contracts
utilityphpv6.4.32
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.

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.

Agent activity
6 hits · last 30 days
node
6
Resources
symfony-cache-contracts — pip install symfony-cache-contracts · libregistry