Пример #1
0
 public async override Task Execute()
 {
     var item = OrderHelper.GetOrder();
     await RedisDB.Set(item.OrderID.ToString(), item);
 }
Пример #2
0
 public async override Task Execute()
 {
     var item = OrderHelper.GetOrder();
     await RedisDB.StringSetAsync(item.OrderID.ToString(), Newtonsoft.Json.JsonConvert.SerializeObject(item));
 }
Пример #3
0
 public async override Task Execute()
 {
     var item = OrderHelper.GetOrder();
     await RedisDB.StringSetAsync(item.OrderID.ToString(), System.Text.Json.JsonSerializer.Serialize(item));
 }