Skip to content

Bump async-redis from 0.11.0 to 0.11.1 #929

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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 10, 2025

Bumps async-redis from 0.11.0 to 0.11.1.

Changelog

Sourced from async-redis's changelog.

v0.11.1

  • Correctly pass @options to Async::Redis::Client instances created by Async::Redis::ClusterClient.

v0.10.0

Add support for Redis Clusters

Async::Redis::ClusterClient is a new class that provides a high-level interface to a Redis Cluster. Due to the way clustering works, it does not provide the same interface as the Async::Redis::Client class. Instead, you must request an appropriate client for the key you are working with.

endpoints = [
	Async::Redis::Endpoint.parse("redis://redis-a"),
	Async::Redis::Endpoint.parse("redis://redis-b"),
	Async::Redis::Endpoint.parse("redis://redis-c"),
]
cluster_client = Async::Redis::ClusterClient.new(endpoints)
cluster_client.clients_for("key") do |client|
puts client.get("key")
end

Add support for Redis Sentinels

The previous implementation Async::Redis::SentinelsClient has been replaced with Async::Redis::SentinelClient. This new class uses Async::Redis::Endpoint objects to represent the sentinels and the master.

sentinels = [
	Async::Redis::Endpoint.parse("redis://redis-sentinel-a"),
	Async::Redis::Endpoint.parse("redis://redis-sentinel-b"),
	Async::Redis::Endpoint.parse("redis://redis-sentinel-c"),
]
master_client = Async::Redis::SentinelClient.new(sentinels)
slave_client = Async::Redis::SentinelClient.new(sentinels, role: :slave)
master_client.session do |session|
session.set("key", "value")
end
slave_client.session do |session|
puts session.get("key")
end

Improved Integration Tests

Integration tests for Redis Cluster and Sentinel have been added, using docker-compose to start the required services and run the tests. These tests are not part of the default test suite and must be run separately. See the documentation in the sentinel/ and cluster/ directories for more information.

Commits
  • e126f6c Bump patch version.
  • 27a0942 Modernize code.
  • 637eb21 Add release notes.
  • 6487485 Correctly pass @options to Async::Redis::Client instances created by `Asy...
  • 0e73e61 Update test coverage workflow dependencies.
  • 9f9bcb1 Add details on supported libraries. Fixes #57.
  • 47854a0 Try running tests on valkey. (#58)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @davidsiaw.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Mar 10, 2025
@azusabot
Copy link

1 Message
📖 🎉

Generated by 🚫 Danger

@dependabot dependabot bot force-pushed the dependabot/bundler/async-redis-0.11.1 branch from b3ead7f to 9d3c044 Compare March 11, 2025 22:37
@davidsiaw
Copy link
Owner

@dependabot merge

@dependabot dependabot bot force-pushed the dependabot/bundler/async-redis-0.11.1 branch from 9d3c044 to 24842c0 Compare March 11, 2025 22:48
Bumps [async-redis](https://github.com/socketry/async-redis) from 0.11.0 to 0.11.1.
- [Changelog](https://github.com/socketry/async-redis/blob/main/releases.md)
- [Commits](socketry/async-redis@v0.11.0...v0.11.1)

---
updated-dependencies:
- dependency-name: async-redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/bundler/async-redis-0.11.1 branch from 24842c0 to d44ed60 Compare March 11, 2025 22:58
@dependabot dependabot bot merged commit 77a53db into master Mar 11, 2025
9 checks passed
@dependabot dependabot bot deleted the dependabot/bundler/async-redis-0.11.1 branch March 11, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants