arooo
arooo copied to clipboard
Bump redis from 4.7.1 to 5.0.2
Bumps redis from 4.7.1 to 5.0.2.
Changelog
Sourced from redis's changelog.
5.0.2
- Fix
Redis#closeto properly reset the fork protection check.5.0.1
- Added a fake
Redis::Connections.driversmethod to be compatible with older sidekiq versions.5.0.0
- Eagerly and strictly cast Integer and Float parameters.
- Allow to call
subscribe,unsubscribe,psubscribeandpunsubscribefrom a subscribed client. See #1131.- Use
MD5for hashing server nodes inRedis::Distributed. This should improve keys distribution among servers. See #1089.- Changed
saddandsremto now always return an Integer.- Added
sadd?andsrem?which always return a Boolean.- Added support for
IDLEparamter inxpending.- Cluster support has been moved to a
redis-clusteringcompanion gem.selectno longer record the current database. If the client has to reconnect afterselectwas 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
loggeroption.- Removed
reconnect_delay_maxandreconnect_delay, you can pass precise sleep durations toreconnect_attemptsinstead.- Require Ruby 2.5+.
- Removed the deprecated
queueandcommitmethods. Usepipelinedinstead.- Removed the deprecated
Redis::Future#==.- Removed the deprecated
pipelinedandmultisignature. 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
synchronydriver.- Removed
Redis.exists_returns_integer, it's now always enabled.4.8.0
- Introduce
sadd?andsrem?as boolean returning versions ofsaddandsrem.- Deprecate
saddandsremreturning a boolean when called with a single argument. To enable the redis 5.0 behavior you can setRedis.sadd_returns_boolean = true.- Deprecate passing
timeoutas a positional argument in blocking commands (brpop,blop, etc).
Commits
d180452Release 5.0.27a867b6Merge pull request #1145 from casperisfine/fork-disconnect28c65bcFixRedis#closeto properly reset the fork protection checked0d03fRedis#client takes at least one argument3037564Release 5.0.17fbd60aStub Redis::Connections.drivers for sidekiq compat667b000Release 5.0.06ddf145Merge pull request #1139 from espen/patch-15296545make connection pool reference clickableacb5989Merge pull request #1138 from wintersolutions/patch-1- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)