From c682520dd94290bc1cc5bab3f53f95cdc56f9086 Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 13 Jan 2022 18:42:19 -0500 Subject: [PATCH] fix(security): Use LRU eviction policy for OIDC sessions --- security/sessions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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