面包店
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.
 
 
 
 
 

14 regels
582 B

  1. package md
  2. // 缓存key统一管理
  3. const (
  4. AdminJwtTokenKey = "%s:bakery_admin_jwt_token:%s" // jwt, 占位符:ip, admin:id
  5. JwtTokenCacheTime = 3600 * 24
  6. AdminRolePermissionKey = "%s:bakery_admin_role_permission:%s" // 占位符:ip, admin:id
  7. AdminRolePermissionCacheTime = 3600 * 24 * 0.5
  8. AdminHomePageDataKey = "%s:bakery_admin_home_data:%s" // 占位符:ip, admin:id
  9. AdminHomePageDataCacheTime = 60 * 10
  10. CfgCacheTime = 86400
  11. AppCfgCacheKey = "bakery:%s" // 占位符: key的第一个字母
  12. )