public static function get(array $configuration = array()) { if (extension_loaded('redis')) { $redis = new \Redis(); $redis->connect($configuration[CacheKeys::HOST]); $cache = new RedisCache(); $cache->setRedis($redis); return $cache; } }