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