package md

// 缓存key统一管理， %s格式化为masterId
const (
	AppCfgCacheKey         = "%s:app_cfg_cache:" // 占位符： masterId， key的第一个字母
	VirtualCoinCfgCacheKey = "%s:virtual_coin_cfg"
	PlanRewardCfgCacheKey  = "%s:plan_reward_cfg"
	UnionSetCacheCfg       = "%s:union_set_cfg:%s" // 联盟设置缓存key

	UserFinValidUpdateLock = "%s:user_fin_valid_update_lock:%s" // 用户余额更新锁（能拿到锁才能更新余额）

	WithdrawApplyQueueListKey = "withdraw_apply_queue" // 提现队列

	TplBottomNavRedisKey = "%s:tpl_nav_bottom_key:%s" // master_id     platform

	SysModByIdRedisKey = "%s:sys_mod_tpl_by_id:%s"

	AppLimiterLock                         = "%s:ZhiOs_app_limiter_lock:%s" // 限流器锁
	DealAppLimiterRequestIdPrefix          = "%s:ZhiOs_app_comm_limiter_request_id:%s"
	DealAppNewcomersLimiterRequestIdPrefix = "%s:ZhiOs_app_newcomers_limiter_request_id:%s"

	CfgCacheTime = 60 * 60 * 4
)
