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

1 年之前
1 年之前
1 年之前
12345678910
  1. package md
  2. // 缓存key统一管理
  3. const (
  4. UserJwtTokenKey = "%s:smart_canteen_user_jwt_token:%s" // jwt, 占位符:ip, user:id
  5. WxAccessToken = "smart_canteen_wx_access_token" // 微信接口凭证
  6. JwtTokenCacheTime = 3600 * 24 * 1
  7. WxAccessTokenCacheTime = 7200 - 1200
  8. WxSessionCacheKey = "wx_session_key" // 占位符: key的第一个字母
  9. )