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 18bd20e commit 76f9fc8Copy full SHA for 76f9fc8
langgraph/checkpoint/redis/shallow.py
@@ -448,7 +448,13 @@ def _deserialize_channel_values_inline(
448
449
if type_name and type_name != "empty" and blob_data is not None:
450
# Create cache key based on channel, type, and data hash
451
- cache_key = f"{channel}:{type_name}:{hash(blob_data)}"
+ # Use a stable hash for cache key
452
+ if isinstance(blob_data, str):
453
+ blob_bytes = blob_data.encode("utf-8")
454
+ else:
455
+ blob_bytes = blob_data
456
+ blob_hash = hashlib.md5(blob_bytes).hexdigest()
457
+ cache_key = f"{channel}:{type_name}:{blob_hash}"
458
459
# Check cache first
460
if cache_key in self._channel_cache:
0 commit comments