code: 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;
      }
docs: @Di\Service("cache")
  @Di\Apply\IfConfig("! env.devMode")
  
  @param Environment $env
  
  @return CacheProvider