services.AddTransient<RedisStringService>();
services.AddTransient<RedisListService>();
services.AddTransient<RedisHashService>();
services.AddTransient<RedisSetService>();
services.AddTransient<RedisZSetService>();
RedisConfigInfo.ReadServerList = "192.168.220.132:6379";
RedisConfigInfo.WriteServerList = "192.168.220.132:6379";
/// <summary>
/// Autofac
/// </summary>
/// <param name="builder"></param>
public void ConfigureContainer(ContainerBuilder builder)
{
builder.RegisterType<RedisStringService>();
builder.RegisterType<RedisListService>();
builder.RegisterType<RedisHashService>();
builder.RegisterType<RedisSetService>();
builder.RegisterType<RedisZSetService>();
}
RedisConfigInfo.ReadServerList = "192.168.220.132:6379";
RedisConfigInfo.WriteServerList = "192.168.220.132:6379";