public async Task RedisTest1() { ConcurrentQueue <setting> settings1 = new ConcurrentQueue <setting>(); Parallel.For(0, 1000000, (item) => { settings1.Enqueue(new setting() { Contact = "1", Description = "1", DuringTime = "1", Integral = 1, Rule = "1" }); }); await redis.RedisList().AddAsync <setting>("test", settings1.ToList()); }
public async Task testredis2() { await redis.RedisList().RightPushAsync("1", new Random().Next(1000, 9999).ToString()); }