gin-contrib / sessions

Gin middleware for session management
MIT License
1.46k stars 196 forks source link

create redis store with a username and password #264

Open sunpengfei0307 opened 6 months ago

sunpengfei0307 commented 6 months ago

Hi! I check the api: "github.com/gin-contrib/sessions/redis"

  1. func NewStoreWithDB(size int, network, address, password, DB string, keyPairs ...[]byte) (Store, error), no username filed,

  2. can't reuse the go-redis's handle (created by redis.NewClient()),I have to create a redundant redisgo‘s connection。