广告平台(站长使用)
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.
 
 
 
 
 

23 lines
650 B

  1. package md
  2. // 缓存key统一管理, %s格式化为masterId
  3. const (
  4. JwtTokenKey = "%s:advertisement_jwt_token:%s" // jwt, 占位符:ip, admin:id
  5. JwtTokenCacheTime = 3600 * 2
  6. AppCfgCacheKey = "%s:cfg_cache:%s" // 占位符: masterId, key的第一个字母
  7. AdminRolePermissionCacheTime = 3600 * 24 * 0.5
  8. AdminRolePermissionByOpenCacheTime = 3600 * 24 * 0.5
  9. KEY_SYS_CFG_CACHE = "sys_cfg_cache"
  10. CfgCacheTime = 86400
  11. AdminRolePermissionKey = "%s:advertisement_admin_role_permission:%s" // 占位符:master_id, admin:id
  12. AdminRolePermissionByOpenKey = "%s:advertisement_admin_role_permission_by_open" // 占位符:master_id
  13. )