蛋蛋星球 后台端
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
499 B

  1. package cfg
  2. // 缓存key统一管理, %s格式化为masterId
  3. const (
  4. JwtTokenKey = "%s:egg_admin_jwt_token:%s" // jwt, 占位符:ip, admin:id
  5. JwtTokenCacheTime = 3600 * 6
  6. AppCfgCacheKey = "egg_admin_cfg_cache:%s" // 占位符: key的第一个字母
  7. CfgCacheTime = 86400
  8. AdminRolePermissionKey = "egg_admin_role_permission:%s" // 占位符:admin:id
  9. AdminRolePermissionCacheTime = 3600 * 24 * 0.5
  10. )
  11. const (
  12. IM_KEY_SYS_CFG_CACHE = "egg_im_sys_cfg_cache" //im配置表缓存键
  13. )