ysomad / go-auth-service

Authentication and account management service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Realize how to store session the most efficient way

ysomad opened this issue · comments

commented
  1. Store sessions: refreshToken: Session
  2. Store User sessions: userID: []Session

Wrap it in transaction and find a way to remove expired sessions from user sessions list/set