Skip to content

Commit

Permalink
fix: increase cache size (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Jan 24, 2025
1 parent e536271 commit 69986df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

Expand Down

0 comments on commit 69986df

Please sign in to comment.