From 854bf53a2cd055756c619869d58bcf92a07b1410 Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Fri, 24 Jan 2025 10:50:38 +0100 Subject: [PATCH] fix: increase cache size --- oidc/oidc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oidc/oidc.go b/oidc/oidc.go index 997eb40..fc1cef0 100644 --- a/oidc/oidc.go +++ b/oidc/oidc.go @@ -204,8 +204,8 @@ func (p *ProviderConfig) NewProvider(ctx context.Context) *Provider { } var oidcConfigCache, _ = ristretto.NewCache(&ristretto.Config[string, []byte]{ - NumCounters: 10_000, - MaxCost: 1_000 * 1024, // 1k items, 1kB each + NumCounters: 500_000, + MaxCost: 50_000 * 1024, // 50k items, 1kB each, 50mb cache BufferItems: 64, })