benutzer bearbeiten

This commit is contained in:
Simon Martens
2025-05-23 19:27:08 +02:00
parent c44467f229
commit 4bd289669d
13 changed files with 498 additions and 34 deletions

View File

@@ -99,6 +99,13 @@ func (c *UserSessionCache) Delete(sessionTokenClear string) {
}
}
func (c *UserSessionCache) Clear() {
c.cache.Clear()
c.mu.Lock()
c.approximateSize = 0
c.mu.Unlock()
}
func (c *UserSessionCache) startCleanupRoutine() {
ticker := time.NewTicker(c.cleanupInterval)
defer ticker.Stop()