- added
CacheInterface
, which provides stampede protection via probabilistic early expiration and should become the preferred way to use a cache - throw
LogicException
whenCacheItem::tag()
is called on an item coming from a non tag-aware pool - deprecated
CacheItem::getPreviousTags()
, useCacheItem::getMetadata()
instead
- added using options from Memcached DSN
- added PruneableInterface so PSR-6 or PSR-16 cache implementations can declare support for manual stale cache pruning
- added prune logic to FilesystemTrait, PhpFilesTrait, PdoTrait, TagAwareAdapter and ChainTrait
- now FilesystemAdapter, PhpFilesAdapter, FilesystemCache, PhpFilesCache, PdoAdapter, PdoCache, ChainAdapter, and ChainCache implement PruneableInterface and support manual stale cache pruning
- added CacheItem::getPreviousTags() to get bound tags coming from the pool storage if any
- added PSR-16 "Simple Cache" implementations for all existing PSR-6 adapters
- added Psr6Cache and SimpleCacheAdapter for bidirectional interoperability between PSR-6 and PSR-16
- added MemcachedAdapter (PSR-6) and MemcachedCache (PSR-16)
- added TraceableAdapter (PSR-6) and TraceableCache (PSR-16)
- added TagAwareAdapter for tags-based invalidation
- added PdoAdapter with PDO and Doctrine DBAL support
- added PhpArrayAdapter and PhpFilesAdapter for OPcache-backed shared memory storage (PHP 7+ only)
- added NullAdapter
- added the component with strict PSR-6 implementations
- added ApcuAdapter, ArrayAdapter, FilesystemAdapter and RedisAdapter
- added AbstractAdapter, ChainAdapter and ProxyAdapter
- added DoctrineAdapter and DoctrineProvider for bidirectional interoperability with Doctrine Cache