Cacheservice

Overview
CacheService wraps a PSR-16 provider like APCu or file cache. Choose the provider in services/Cache/config.php.

Usage

$cache = service('cache');
$cache->set('key','value',3600);
$value = $cache->get('key');

Tip Enable debugging to log cache hits and misses.