makeRedisAdapter($config); case 'apc': return new APC(); } throw new InvalidArgumentException(sprintf('The driver [%s] is not supported.', $driver)); } /** * Factory a redis storage adapter. * * @param array $config * * @return Redis */ protected function makeRedisAdapter(array $config) { if (isset($config['prefix'])) { Redis::setPrefix($config['prefix']); } return new Redis($config); } }