src/PeekAndPoke/AviatorAllRounder/AviatorAllRounderDefaults.php
public function createCache(Environment $env) : CacheProvider
    {
        if (extension_loaded('apcu')) {
            $cache = new ApcuCache();
        } else {
            $cache = new FilesystemCache(Aviator::getInstallDir() . '/tmp/cache/');
        }

        $cache->setNamespace($env->getName() . ($env->isDevMode() ? '-dev' : ''));

        return $cache;
    }
public function createCache(Environment $env) : CacheProvider
    {
        if (extension_loaded('apcu')) {
            $cache = new ApcuCache();
        } else {
            $cache = new FilesystemCache(Aviator::getInstallDir() . '/tmp/cache/');
        }

        $cache->setNamespace($env->getName() . ($env->isDevMode() ? '-dev' : ''));

        return $cache;
    }
@Di\Service("cache")
@Di\Apply\IfConfig("! env.devMode")

@param Environment $env

@return CacheProvider