예제 #1
0
        public override Task Execute()
        {
            var item = OrderHelper.GetOrder();

            RedisDB.StringSet(item.OrderID.ToString(), Newtonsoft.Json.JsonConvert.SerializeObject(item));
            return(base.Execute());
        }
예제 #2
0
        public override Task Execute()
        {
            var item = OrderHelper.GetOrder();

            cli.Set(item.OrderID.ToString(), System.Text.Json.JsonSerializer.Serialize(item));
            return(base.Execute());
        }
예제 #3
0
 public async override Task Execute()
 {
     var item = OrderHelper.GetOrder();
     await RedisDB.StringSetAsync(item.OrderID.ToString(), Newtonsoft.Json.JsonConvert.SerializeObject(item));
 }
예제 #4
0
 public async override Task Execute()
 {
     var item = OrderHelper.GetOrder();
     await RedisDB.Set(item.OrderID.ToString(), item);
 }
예제 #5
0
 public async override Task Execute()
 {
     var item = OrderHelper.GetOrder();
     await RedisDB.StringSetAsync(item.OrderID.ToString(), System.Text.Json.JsonSerializer.Serialize(item));
 }