private static function createConnection() { $serverProfile = Predis_RedisServerProfile::get('2.2'); $connection = new Predis_Client(RC::getConnectionArguments(), $serverProfile); $connection->connect(); $connection->select(RC::DEFAULT_DATABASE); return $connection; }