public async Task Cleanup() { try { var dut = new AsyncRedisClient(); await dut.Connect(LocalHostDefaultPort.AsConnectionSettings()); await dut.Select(0); await dut.Del(Key); await dut.Del(Key2); await dut.Select(7); await dut.Del(Key); await dut.Del(Key2); } catch (Exception ex) { Console.WriteLine($"Error during cleanup: {ex}"); throw; } }
public async Task Cleanup() { try { var dut = new AsyncRedisClient(); await dut.Connect(LocalHostDefaultPort.AsConnectionSettings()); await dut.Select(0); _keys.ForEach(k => dut.Del(k).GetAwaiter().GetResult()); } catch (Exception ex) { Console.WriteLine($"Error during cleanup: {ex}"); throw; } }