Please note that doctrine/cache is deprecated and no longer maintained. The last version to include cache drivers is 1.11. The 2.x major release series only provides the interfaces for libraries that need to maintain backward compatibility. For all cache uses, we suggest relying on PSR-6 or PSR-16 instead and using a cache library that supports those interfaces.
Doctrine Cache is a library that provides an interface for caching data.
Here is what the
Cache interface looks like.
If you are using the
Cache interface in your application, then you need to
upgrade your application to use a PSR-6 cache library and wrap the PSR-6
CacheItemPoolInterface into the
An implementation of the PSR-6 cache is provided by "symfony/cache" library for example, you can install it via Composer with:
$ composer require symfony/cache
A full example to setup a filesystem based cache with symfony/cache then looks like this: