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 |
|---|---|---|
$namespace
|
?string |
NULL
|
Returns
Psr\SimpleCache\CacheInterface