package md // 缓存key统一管理, %s格式化为masterId const ( JwtTokenKey = "%s:advertisement_agent_jwt_token:%s" // jwt, 占位符:ip, admin:id JwtTokenCacheTime = 3600 * 2 AppCfgCacheKey = "%s:cfg_cache:%s" // 占位符: masterId, key的第一个字母 UserFinValidUpdateLock = "%s:user_fin_valid_update_lock:%s" // 用户余额更新锁(能拿到锁才能更新余额) AdminRolePermissionCacheTime = 3600 * 24 * 0.5 KEY_SYS_CFG_CACHE = "sys_cfg_cache" CfgCacheTime = 86400 )