|
12345678910111213141516171819202122 |
- package md
-
- // 缓存key统一管理, %s格式化为masterId
- const (
- JwtTokenKey = "%s:advertisement_jwt_token:%s" // jwt, 占位符:ip, admin:id
-
- JwtTokenCacheTime = 3600 * 2
-
- AppCfgCacheKey = "%s:cfg_cache:%s" // 占位符: masterId, key的第一个字母
-
- AdminRolePermissionCacheTime = 3600 * 24 * 0.5
-
- AdminRolePermissionByOpenCacheTime = 3600 * 24 * 0.5
-
- KEY_SYS_CFG_CACHE = "sys_cfg_cache"
-
- CfgCacheTime = 86400
-
- AdminRolePermissionKey = "%s:advertisement_admin_role_permission:%s" // 占位符:master_id, admin:id
-
- AdminRolePermissionByOpenKey = "%s:advertisement_admin_role_permission_by_open" // 占位符:master_id
- )
|