MCPcopy
hub / github.com/redis/redis-py / aclose

Method aclose

redis/asyncio/cluster.py:583–592  ·  view source on GitHub ↗

Close all connections & client if initialized.

(self)

Source from the content-addressed store, hash-verified

581 return self
582
583 async def aclose(self) -> None:
584 """Close all connections & client if initialized."""
585 if not self._initialize:
586 if not self._lock:
587 self._lock = asyncio.Lock()
588 async with self._lock:
589 if not self._initialize:
590 self._initialize = True
591 await self.nodes_manager.aclose()
592 await self.nodes_manager.aclose("startup_nodes")
593
594 @deprecated_function(version="5.0.0", reason="Use aclose() instead", name="close")
595 async def close(self) -> None:

Callers 10

closeMethod · 0.95
__aexit__Method · 0.95
_execute_commandMethod · 0.95
initializeMethod · 0.45
executeMethod · 0.45
get_sharded_messageMethod · 0.45
acloseMethod · 0.45

Calls

no outgoing calls