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

Method set_response_callback

redis/asyncio/client.py:477–479  ·  view source on GitHub ↗

Set a custom Response Callback

(self, command: str, callback: ResponseCallbackT)

Source from the content-addressed store, hash-verified

475 return self
476
477 def set_response_callback(self, command: str, callback: ResponseCallbackT):
478 """Set a custom Response Callback"""
479 self.response_callbacks[command] = callback
480
481 def get_encoder(self):
482 """Get the connection pool's encoder"""

Callers 8

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected