fix(security): Use LRU eviction policy for OIDC sessions

This commit is contained in:
TwiN 2022-01-13 18:42:19 -05:00
parent 24b7258338
commit c682520dd9

View File

@ -2,4 +2,4 @@ package security
import "github.com/TwiN/gocache/v2" 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