mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-04 18:38:12 +02:00
use a smaller cache size
This commit is contained in:
parent
cfa929f77f
commit
00b18e8e7e
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ type RegoCompiler struct {
|
|||
|
||||
// NewRegoCompiler creates a new RegoCompiler using the given store.
|
||||
func NewRegoCompiler(store *store.Store) *RegoCompiler {
|
||||
policyCache := expirable.NewLRU[string, rego.PreparedEvalQuery](10_000, nil, time.Hour*24)
|
||||
policyCache := expirable.NewLRU[string, rego.PreparedEvalQuery](100, nil, time.Hour*24)
|
||||
headersCache, err := lru.New[string, rego.PreparedEvalQuery](1)
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("failed to create lru cache for headers rego scripts: %w", err))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue