智慧食堂
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.

15 lines
705 B

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