飞猪

Results issues of 飞猪

目标方法:backend\app\admin\service\internal\data\user_token_cache.go 解决低版本redis登录报错:不使用 Hash,这样代码更简单,没有版本兼容性问题,每个 token 独立过期,管理起来也更清晰。 注意: 1.移除的私有方法:hset、hgetValues、hexists、hdel(全部是 Hash 操作,不再需要) 2.新增的私有方法:scanKeys、scanValues、scanFindValue、delByPattern、extractJtiFromKey package data import ( "context" "errors" "fmt" "strings" "time" "github.com/go-kratos/kratos/v2/log" "github.com/redis/go-redis/v9" "github.com/tx7do/kratos-bootstrap/bootstrap" authenticationV1 "go-wind-admin/api/gen/go/authentication/service/v1" ) const ( // AccessTokenKeyFormat 访问令牌键格式...