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

Add Cmd::get, Cmd::set and remove PipelineCommands #253

Merged
merged 2 commits into from
Dec 30, 2019

Conversation

Marwes
Copy link
Collaborator

@Marwes Marwes commented Oct 31, 2019

0b314e2

It is currently possible to call set,get etc on a connection and
run the query directly but it isn't possible to create a Cmd struct
without running the query (except for Pipeline).

This adds this capability with just some small tweaks to the macro
allowing Cmd::set("abc", 123) to be used etc.

af5fc36

A simple impl Pipeline block will do the trick here.

BREAKING CHANGE

Remove any imports of PipelineCommands

It is currently possible to call `set`,`get` etc on a connection and
run the query directly but it isn't possible to create a `Cmd` struct
without running the query (except for `Pipeline`).

This adds this capability with just some small tweaks to the macro
allowing `Cmd::set("abc", 123)` to be used etc.
A simple `impl Pipeline` block will do the trick here.

BREAKING CHANGE

Remove any imports of PipelineCommands
@badboy badboy merged commit 93b5b50 into redis-rs:master Dec 30, 2019
@Marwes Marwes deleted the commands branch December 30, 2019 16:53
barshaul pushed a commit to barshaul/redis-rs that referenced this pull request Jul 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants