SimpleCache
SimpleCache is the PSR-16 Simple Cache interface defined by the PHP Framework Interop Group (PHP-FIG). It provides a lightweight, language-agnostic contract for a cache that can be implemented by a variety of backends, from in-memory arrays to external stores such as APCu, Memcached, Redis, or filesystem-based caches. The goal is to enable developers to depend on a single, simple API rather than on a specific caching implementation.
The interface focuses on eight core operations: obtaining and storing values with optional time-to-live (TTL), deleting
SimpleCache is designed for ease of use and interoperability. It enables libraries and applications to swap
Common implementations are provided by various PHP libraries and framework components and can back in-memory caches