Browse Source

update 余额缓存

master
DengBiao 9 months ago
parent
commit
890662df72
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      svc/svc_deal_user_amount.go

+ 1
- 1
svc/svc_deal_user_amount.go View File

@@ -127,7 +127,7 @@ func SetCacheUserAmount(session *xorm.Session, masterId, amount string, uid int,
}
//_, err := cache.Set(redisKey, int64(utils.StrToFloat64(amount)))
//TODO::默认缓存1小时 (先调整为 2 min)
_, err := cache.SetEx(redisKey, zhios_order_relate_utils.StrToFloat64(amount), 60*2)
_, err := cache.SetEx(redisKey, zhios_order_relate_utils.StrToFloat64(amount), 60*1)
if err != nil {
return err
}


Loading…
Cancel
Save