/**
* @return CacheProvider|null
*/
public function detectCacheProvider() { $cache = null;
if (\
extension_loaded('apcu'
)) { $cache =
new ApcuCache();
} elseif (\
extension_loaded('xcache'
)) { $cache =
new XcacheCache();
} return $cache;
} /**
* @throws Exception
*/
public function setCacheProvider(array
$options) { $provider =
$options['cacheProvider'
];