Registry / utility / symfony-cache

symfony-cache

JSON →
library8.1.0phppackagistunverified

Provides extended PSR-6, PSR-16 (and tags) implementations for caching in PHP applications.

composer require symfony/cache
INSTALL
IMPORT
SIG · SYMFONY-CACHE
S
symfony-cache
utilityphpv8.1.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.

FilesystemAdapter
use Symfony\Component\Cache\Adapter\FilesystemAdapter;

Create a filesystem cache adapter and retrieve a cached value.

use Symfony\Component\Cache\Adapter\FilesystemAdapter; $cache = new FilesystemAdapter(); $cache->get('my_key', function() { return 'cached_value'; });
Debug
Known issues
breakingRequires PHP 8.2 or higher for version 8.1.
fix
Upgrade PHP to 8.2+ or use an older version of the package.
affects: >=8.0
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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