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

Method connect

redis/asyncio/client.py:928–930  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

926 self.connection: Optional[Connection] = None
927
928 async def connect(self):
929 if self.connection is None:
930 self.connection = await self.connection_pool.get_connection()
931
932 async def __aenter__(self):
933 await self.connect()

Callers 2

__aenter__Method · 0.95
next_commandMethod · 0.95

Calls 1

get_connectionMethod · 0.45

Tested by

no test coverage detected