mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
benutzer bearbeiten
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user