Fix Redis#close to properly reset the fork protection check.
5.0.1
Added a fake Redis::Connections.drivers method to be compatible with older sidekiq versions.
5.0.0
Eagerly and strictly cast Integer and Float parameters.
Allow to call subscribe, unsubscribe, psubscribe and punsubscribe from a subscribed client. See #1131.
Use MD5 for hashing server nodes in Redis::Distributed. This should improve keys distribution among servers. See #1089.
Changed sadd and srem to now always return an Integer.
Added sadd? and srem? which always return a Boolean.
Added support for IDLE paramter in xpending.
Cluster support has been moved to a redis-clustering companion gem.
select no longer record the current database. If the client has to reconnect after select was used, it will reconnect to the original database.
Better support Float timeout in blocking commands. See #977.
Removed positional timeout in blocking commands (BLPOP, etc). Timeout now must be passed as an option: r.blpop("key", timeout: 2.5)
Removed logger option.
Removed reconnect_delay_max and reconnect_delay, you can pass precise sleep durations to reconnect_attempts instead.
Require Ruby 2.5+.
Removed the deprecated queue and commit methods. Use pipelined instead.
Removed the deprecated Redis::Future#==.
Removed the deprecated pipelined and multi signature. Commands now MUST be called on the block argument, not the original redis instance.
Removed Redis.current. You shouldn't assume there is a single global Redis connection, use a connection pool instead,
and libaries using Redis should accept a Redis instance (or connection pool) as a config. E.g. MyLibrary.redis = Redis.new(...).
Removed the synchrony driver.
Removed Redis.exists_returns_integer, it's now always enabled.
4.8.0
Introduce sadd? and srem? as boolean returning versions of sadd and srem.
Deprecate sadd and srem returning a boolean when called with a single argument.
To enable the redis 5.0 behavior you can set Redis.sadd_returns_boolean = true.
Deprecate passing timeout as a positional argument in blocking commands (brpop, blop, etc).
4.7.1
Gracefully handle OpenSSL 3.0 EOF Errors (OpenSSL::SSL::SSLError: SSL_read: unexpected eof while reading). See #1106
This happens frequently on heroku-22.
4.7.0
Support single endpoint architecture with SSL/TLS in cluster mode. See #1086.
zrem and zadd act as noop when provided an empty list of keys. See #1097.
Support IPv6 URLs.
Add Redis#with for better compatibility with connection_pool usage.
Fix the block form of multi called inside pipelined. Previously the MUTLI/EXEC wouldn't be sent. See #1073.
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 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 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)
Bumps redis from 4.2.5 to 5.0.2.
Changelog
Sourced from redis's changelog.
... (truncated)
Commits
d180452
Release 5.0.27a867b6
Merge pull request #1145 from casperisfine/fork-disconnect28c65bc
FixRedis#close
to properly reset the fork protection checked0d03f
Redis#client takes at least one argument3037564
Release 5.0.17fbd60a
Stub Redis::Connections.drivers for sidekiq compat667b000
Release 5.0.06ddf145
Merge pull request #1139 from espen/patch-15296545
make connection pool reference clickableacb5989
Merge pull request #1138 from wintersolutions/patch-1Dependabot 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 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 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)