public void Redis() { Parallel.For(0, Clients, _ => { string key = Prepare.Key(); RedisClient.StringSetAsync(key, _data).GetAwaiter().GetResult(); RedisClient.StringGetAsync(key).GetAwaiter().GetResult(); RedisClient.KeyDeleteAsync(key).GetAwaiter().GetResult(); }); }
public void Kronos() { Parallel.For(0, Clients, _ => { string key = Prepare.Key(); KronosClient.InsertAsync(key, _data, null) .GetAwaiter().GetResult(); KronosClient.GetAsync(key) .GetAwaiter().GetResult(); KronosClient.DeleteAsync(key) .GetAwaiter().GetResult(); }); }
public async Task Redis() { string key = Prepare.Key(); await RedisClient.SetContainsAsync(key, ""); }
public async Task Kronos() { string key = Prepare.Key(); await KronosClient.ContainsAsync(key); }