You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use your preferred OpenTelemetry SDK setup for exporters and processors in production; the example uses no-op providers for simplicity.
89
89
90
+
### Eviction algorithms
91
+
92
+
Available algorithm names you can pass to `WithEvictionAlgorithm`:
93
+
94
+
- "lru" — Least Recently Used (default)
95
+
- "lfu" — Least Frequently Used (with LRU tie-breaker for equal frequencies)
96
+
- "clock" — Second-chance clock
97
+
- "cawolfu" — Cache-Aware Write-Optimized LFU
98
+
- "arc" — Adaptive Replacement Cache (experimental; not registered by default)
99
+
100
+
Note: ARC is experimental and isn’t included in the default registry. If you choose to use it, register it manually or enable it explicitly in your build.
101
+
90
102
## API
91
103
92
104
The `NewInMemoryWithDefaults` function creates a new `HyperCache` instance with the defaults:
0 commit comments