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

Method on_connect

redis/asyncio/connection.py:461–463  ·  view source on GitHub ↗

Initialize the connection, authenticate and select a database

(self)

Source from the content-addressed store, hash-verified

459 return self.protocol
460
461 async def on_connect(self) -> None:
462 """Initialize the connection, authenticate and select a database"""
463 await self.on_connect_check_health(check_health=True)
464
465 async def on_connect_check_health(self, check_health: bool = True) -> None:
466 self._parser.on_connect(self)

Callers 2

_connectMethod · 0.45

Calls 1

Tested by

no test coverage detected