Skip to content

Commit 95b8ecd

Browse files
committed
align cmab cache size with odp size - 10000
1 parent d003b79 commit 95b8ecd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/cmab/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
)
2525

2626
const (
27-
// DefaultCacheSize is the default size for CMAB cache
28-
DefaultCacheSize = 1000
27+
// DefaultCacheSize is the default size for CMAB cache (aligned with ODP segments cache)
28+
DefaultCacheSize = 10000
2929
// DefaultCacheTTL is the default TTL for CMAB cache (30 minutes to match agent)
3030
DefaultCacheTTL = 30 * time.Minute
3131

pkg/cmab/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestNewDefaultConfig(t *testing.T) {
3535
}
3636

3737
func TestDefaultConstants(t *testing.T) {
38-
assert.Equal(t, 1000, DefaultCacheSize)
38+
assert.Equal(t, 10000, DefaultCacheSize)
3939
assert.Equal(t, 30*time.Minute, DefaultCacheTTL)
4040
assert.Equal(t, 10*time.Second, DefaultHTTPTimeout)
4141
}

0 commit comments

Comments
 (0)