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

Deprecate calling commands on the original Redis instance in multi (block) #1061

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

casperisfine
Copy link

Followup #1059 for multi.

The new favored API is:

redis.multi do |transaction|
  transaction.get("foo")
  transaction.del("bar")
end

This API allow multiple threads to build pipelines concurrently on the same
connection, and is more friendly to Fiber based concurrency.

Fix: #1057

@casperisfine casperisfine force-pushed the multi-deprecation branch 5 times, most recently from 48328ea to 5684ffa Compare January 21, 2022 11:28
…lock)

The new favored API is:

```ruby
redis.multi do |transaction|
  transaction.get("foo")
  transaction.del("bar")
end
```

This API allow multiple threads to build transactions concurrently on the same
connection, and is more friendly to Fiber based concurrency.

Fix: redis#1057
@byroot byroot merged commit c30c510 into redis:master Jan 21, 2022
@capripot
Copy link

Would this deprecation also apply for calls to Redis#multi without a block?

@byroot
Copy link
Collaborator

byroot commented Feb 22, 2022

Would this deprecation also apply for calls to Redis#multi without a block?

No.

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.

None yet

3 participants