Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions langgraph/checkpoint/redis/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,17 @@ async def asetup(self) -> None:
# Detect cluster mode if not explicitly set
await self._detect_cluster_mode()

async def setup(self) -> None:
"""Set up the checkpoint saver asynchronously.

This method creates the necessary indices in Redis and detects cluster mode.
It MUST be called before using the checkpointer.

This is the async version that should be awaited. It delegates to asetup()
for the actual implementation.
"""
await self.asetup()

async def _detect_cluster_mode(self) -> None:
"""Detect if the Redis client is a cluster client by inspecting its class."""
if self.cluster_mode is not None:
Expand Down
Loading