|
1234567891011121314151617181920 |
- package md
-
- // 缓存key统一管理, %s格式化为masterId
- const (
- JwtTokenKey = "%s:super_advertisement_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
-
- AdminRolePermissionKey = "%s:advertisement_super_admin_role_permission:%s" // 占位符:ip, admin:id
- )
|