yiisoft/cache
A lightweight PSR-16 cache package for PHP from the Yii3 ecosystem, offering a simple, consistent API for storing and retrieving values with TTL support and a foundation for file, array, APCu, and other cache backends.
yiisoft/cache is a framework-agnostic PSR-16 cache library from the Yii ecosystem, not a Laravel package. Laravel already provides PSR-16-compatible cache repositories through its own cache layer, so adopting this package would introduce a second cache abstraction unless there is a specific interoperability need. It does not natively integrate with Laravel’s Cache facade, cache events, tags, locks, Redis connection management, or queue/worker conventions.Psr\SimpleCache\CacheInterface instance into Laravel’s service container and injecting it only where PSR-16 is required. The main uncertainty is storage support: the core package may define cache behavior/interfaces while requiring separate Yii cache storage adapters for file, Redis, Memcached, APCu, or database backends. That means additional packages, configuration, and operational ownership.TPM recommendation: Do not adopt as Laravel’s primary cache layer. Consider only for narrow PSR-16 interoperability or reuse of a specific Yii cache backend, isolated behind an application-owned adapter.
yiisoft/cache is required, treat it as an infrastructure detail behind an application interface, not as a replacement for Laravel’s Cache facade. Bind Psr\SimpleCache\CacheInterface in a service provider and inject it only into components that explicitly need PSR-16.How can I help you explore Laravel packages today?