Basic Usage
Eviction Policies
Per-Agent Limits
Memory Usage
TTL (Time to Live)
Auto-expire old entries:Memory Warnings
Cleanup
Best Practices
Set appropriate limits
Set appropriate limits
10-50 MB per agent is usually enough. More = slower performance.
Use TTL for caches
Use TTL for caches
Don’t keep stale data forever.
Monitor memory usage
Monitor memory usage
If you’re hitting limits often, optimize what you’re storing.
Choose the right eviction policy
Choose the right eviction policy
LRU for caches, FIFO for logs, LFU for frequently accessed data.