劲创营---任务项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
830 B

  1. package md
  2. // 缓存key统一管理, %s格式化为masterId
  3. const (
  4. AppCfgCacheKey = "%s:cfg_cache:" // 占位符: masterId, key的第一个字母
  5. VirtualCoinCfgCacheKey = "%s:virtual_coin_cfg_comm"
  6. FunctionPermissionCfgCacheKey = "%s:function_permission_cfg"
  7. VirtualCoinCfgAllCacheKey = "%s:virtual_coin_cfg_all"
  8. PlanRewardCfgCacheKey = "%s:plan_reward_cfg:%s" // 后面的为平台类型
  9. UserFinValidUpdateLock = "%s:user_fin_valid_update_lock:%s" // 用户余额更新锁(能拿到锁才能更新余额)
  10. AppCommLimiterLock = "%s:app_comm_limiter_lock:%s" // 限流器锁
  11. DealAppCommLimiterRequestIdPrefix = "%s:app_comm_limiter_request_id:%s"
  12. CampTaskLock = "%s:camp_task_lock:%s" //
  13. CfgCacheTime = 60 * 60 * 4
  14. )