public static async Task <SpiderRedisClient> CreateAsync(ConfigurationOptions configuration, TextWriter log = null) { var client = new SpiderRedisClient { ConnMultiplexer = await ConnectionMultiplexer.ConnectAsync(configuration, log) }; return(client); }
public static SpiderRedisClient Create(string connString, TextWriter log = null) { var opt = ConfigurationOptions.Parse(connString, false); var client = new SpiderRedisClient() { ConnMultiplexer = ConnectionMultiplexer.Connect(opt, log) }; return(client); }