-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add support for JSON commands in Async Cluster #2234
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Supported in 4.4.0. |
This doesn't seem to work still |
@dvora-h can you double check this? |
This still doesn't work with redis.asyncio. I'm using the latest version(4.5.5) |
@chayim I can confirm @bharatbots's findings, FWIW |
Did some more digging / testing. Long story short, the comments in PR #2423 are correct - ALSO, an implementation of From my testing, this seems to work just fine: def set_response_callback(self, command: str, callback: Callable[..., Any]) -> None:
"""Set a custom response callback."""
self._client.set_response_callback(command, callback)
for node in self._client.nodes_manager.nodes_cache.values():
node.response_callbacks[command] = callback |
It seems that the .json() ability is supported in the Cluster client but not in Async Cluster client.
AttributeError: 'RedisCluster' object has no attribute 'json'
The text was updated successfully, but these errors were encountered: