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

Method disconnect

redis/cluster.py:3368–3376  ·  view source on GitHub ↗

Disconnect the pubsub connection.

(self)

Source from the content-addressed store, hash-verified

3366 return self.node.redis_connection
3367
3368 def disconnect(self):
3369 """
3370 Disconnect the pubsub connection.
3371 """
3372 if self.connection:
3373 self.connection.disconnect()
3374 for pubsub in self.node_pubsub_mapping.values():
3375 if pubsub.connection:
3376 pubsub.connection.disconnect()
3377
3378
3379class ClusterPipeline(RedisCluster):

Callers 15

closeMethod · 0.45
_close_connectionMethod · 0.45
__exit__Method · 0.45
resetMethod · 0.45
_reconnectMethod · 0.45
resetMethod · 0.45
_execute_transactionMethod · 0.45
_execute_commandMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected