/**
* @throws Exception
*/
public function setCacheProvider(array
$options) { $provider =
$options['cacheProvider'
];
$cache = null;
switch (strtolower($provider)) { case 'auto':
$cache =
$this->
detectCacheProvider();
break;
case 'redis':
$cache =
$this->
createRedisCacheProvider($options);
break;
default:
$cache =
$this->
createDefaultProvider($provider);
} if ($cache instanceof CacheProvider
) { $this->
setCache($cache);
} }