Iteration¶
You can iterate over all entries in the cache using the All
method.
Key Features¶
Iteration in Otter provides:
- Efficiency: Iteration is performed efficiently without blocking other operations
- Goroutine Safety: Iteration is safe to use in concurrent environments
- Snapshot View: Iteration provides a consistent view of the cache at a point in time
- Memory Efficiency: Iteration is performed without copying the entire cache