Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an integer return from REDIS::publish() #14

Open
seungjin opened this issue Feb 27, 2024 · 1 comment
Open

Getting an integer return from REDIS::publish() #14

seungjin opened this issue Feb 27, 2024 · 1 comment

Comments

@seungjin
Copy link

publish: func(channel: string, payload: payload) -> result<_, error>;

Currently .publish returns Result<(), Error>.
But if this can return an integer value instead of () would be better like redis-cli.
redis-cli returns an integer how many nodes get the published msg.

This is an enhancement.

@dicej
Copy link
Collaborator

dicej commented Mar 8, 2024

Sounds good to me. As a workaround, you should be able to use the general-purpose execute method instead of publish and get the result that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants