public void SubPubTest() { var redis = new RedisServer(); //redis.PreserveAsyncOrder = false; string result = ""; redis.Subscribe("messages", (channel, message) => { result = message; }); redis.Publish("messages", "hello"); Thread.Sleep(2000); Assert.AreEqual("hello", result); redis.Dispose(); }
public void Dispose() { Redis?.Dispose(); }