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

Remove the need for RefCell by requiring &mut ConnectionLike #148

Closed
wants to merge 1 commit into from

Conversation

Marwes
Copy link
Collaborator

@Marwes Marwes commented Apr 25, 2018

There isn't anything in redis-rs that requires the RefCell so users can always replicate the earlier behavior by themselves wrapping the connection in a RefCell.

This might also protect against programmer errors when using iter to query as one should not issue another query while still using the iterator.

BREAKING CHANGE

Changes the signature of several functions that took a &ConnectionLike to take &mut ConnectionLike

@badboy
Copy link
Collaborator

badboy commented Feb 20, 2019

I have a rebased version of this in the mut_connection branch and I'm trying it out on various reverse dependencies to see its impact.

@Marwes Marwes force-pushed the mut_connection branch 2 times, most recently from 0a8e6ac to 116e465 Compare March 19, 2019 10:31
@Marwes
Copy link
Collaborator Author

Marwes commented Mar 19, 2019

@badboy I rebased this using your mut_connection branch and fixed some additional compile errors in case you want to move forward with this.

@badboy
Copy link
Collaborator

badboy commented Mar 19, 2019

I'll spend some time on this tomorrow and see if we go ahead with it.

@badboy
Copy link
Collaborator

badboy commented Mar 26, 2019

Rebased and merged as 531415e.
Changelog: 03a9611

@badboy badboy closed this Mar 26, 2019
barshaul pushed a commit to barshaul/redis-rs that referenced this pull request Jun 9, 2024
barshaul pushed a commit to barshaul/redis-rs that referenced this pull request Jul 11, 2024
* Add persist() command to java (redis-rs#148)

Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>

---------

Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
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