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

Name Type Default Description
$namespace ?string NULL Documentation missing

Returns

Psr\SimpleCache\CacheInterface

Source

src/Cache/functions.php:20-29