diff --git a/security/sessions.go b/security/sessions.go index 10d25486..853f3c3d 100644 --- a/security/sessions.go +++ b/security/sessions.go @@ -2,4 +2,4 @@ package security import "github.com/TwiN/gocache/v2" -var sessions = gocache.NewCache() // TODO: Move this to storage +var sessions = gocache.NewCache().WithEvictionPolicy(gocache.LeastRecentlyUsed) // TODO: Move this to storage