We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13b9df9 commit 18bd20eCopy full SHA for 18bd20e
langgraph/checkpoint/redis/shallow.py
@@ -463,8 +463,8 @@ def _deserialize_channel_values_inline(
463
464
# Add to cache with size limit
465
if len(self._channel_cache) >= self._channel_cache_max_size:
466
- # Remove oldest entry (simple FIFO)
467
- self._channel_cache.pop(next(iter(self._channel_cache)))
+ # Remove least recently used entry (LRU)
+ self._channel_cache.popitem(last=False)
468
self._channel_cache[cache_key] = deserialized
469
470
return channel_values
0 commit comments