public static List<RedisEndpoint> ToRedisEndPoints(this IEnumerable<string> hosts) { return hosts == null ? new List<RedisEndpoint>() : hosts.Select(x => ToRedisEndpoint(x)).ToList(); }