async static Task Test2Async() { var RedisClient = new RedisClientAsync(); await RedisClient.Connect("localhost", 6379); Console.WriteLine((await RedisClient.Command("set", "hello-csharp", "999")).ToJson()); Console.WriteLine((await RedisClient.Command("get", "hello-csharp")).ToJson()); }
public async Task _CommandTestAsync() { var RedisClient = new RedisClientAsync(); /* await RedisClient.Connect("localhost", 6379); Console.WriteLine((await RedisClient.Command("set", "hello-csharp", "1")).ToJson()); Console.WriteLine((await RedisClient.Command("get", "hello-csharp")).ToJson()); */ }