Implement session cleanup

This commit is contained in:
2024-05-05 15:27:02 +07:00
parent dce11e3569
commit f1d70fc74a
3 changed files with 36 additions and 6 deletions

2
cache/user.go vendored
View File

@ -26,7 +26,7 @@ func init() {
log = logger.Logger()
userCache = make(map[string]*UserWithExpired)
ticker := time.NewTicker(time.Hour)
ticker := time.NewTicker(time.Minute)
go func() {
for {