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

md_app_redis_key.go 567 B

1 year ago
1 year ago
1 year ago
123456789101112
  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. CfgCacheTime = 86400
  9. AppCfgCacheKey = "smart_canteen:%s" // 占位符: key的第一个字母
  10. WxOfficialAccountCacheKey = "wx_official_account" // 占位符: key的第一个字母
  11. )