-
Notifications
You must be signed in to change notification settings - Fork 260
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
Changes to outbound redis interfaces #1873
Conversation
In #1866 I said we should change |
Looks like the underlying |
@lann my question isn't how to make it work but rather what should the API be? Is it better to mimic the way the |
Unless I'm missing something, the underlying I assume this is the trait method being called: https://docs.rs/redis/0.23.3/redis/trait.AsyncCommands.html#method.get |
Sorry, I misread/misinterpreted what you were saying. I think |
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Part of #1866
The changes to the interface are:
error
to 4 different error possibilities.s64
to returnu32
since they should never return anything by positive numbersget
returnsresult<option<list<u8>>, error>
rather thanresult<list<u8>, error>
returningok(none)
when the key does not exist - this mirrors how Redis's server API.