mini\Cache\NamespacedCache class

Documentation

Namespaced cache proxy

Wraps another cache implementation and prefixes all keys with a namespace. This allows logical separation of cache entries without separate cache instances.

Inheritance

Implements: Psr\SimpleCache\CacheInterface

Properties (3)

private Psr\SimpleCache\CacheInterface $cache
private string $namespace
private string $separator

Methods (14)

Documentation missing

Prefix key with namespace

Prefix multiple keys with namespace

Remove namespace prefix from results

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Get the namespace for this cache instance

Get the underlying cache instance

Source

src/Cache/NamespacedCache.php:13-142