Registry / utility / doctrine-cache

doctrine-cache

JSON →
library2.2.0phppackagistunverified

PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.

composer require doctrine/cache
INSTALL
IMPORT
SIG · DOCTRINE-CACHE
D
doctrine-cache
utilityphpv2.2.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.

CacheProvider
✓ use Doctrine\Common\Cache\CacheProvider;

Basic caching with Doctrine Cache using filesystem driver.

use Doctrine\Common\Cache\FilesystemCache; $cache = new FilesystemCache('/path/to/cache'); $cache->save('key', 'value', 3600); $data = $cache->fetch('key');
Debug
Known issues
breakingDeprecated in favor of PSR-6/PSR-16
fix
Migrate to PSR-6 compatible cache implementations like Symfony Cache.
affects: >=2.0
Upgrade
Version history
2.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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