gin-contrib / sessions

Gin middleware for session management
MIT License
1.44k stars 194 forks source link

create redis store with a username and password #264

Open sunpengfei0307 opened 5 months ago

sunpengfei0307 commented 5 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。