mini\cache() function

Documentation

Get cache instance

Returns PSR-16 SimpleCache instance from container. With smart fallback: APCu > SQLite in /tmp > Filesystem in /tmp

Signature

function cache(?string $namespace = NULL): Psr\SimpleCache\CacheInterface

Parameters

NameTypeDefault
$namespace ?string NULL

Returns

Psr\SimpleCache\CacheInterface

Source

src/Cache/functions.php:20-29