chore(deps): update dependency redis to v5
This MR contains the following updates:
Package | Update | Change |
---|---|---|
redis (changelog) | major |
"4.8.1" -> "5.2.0"
|
Release Notes
redis/redis-rb (redis)
v5.2.0
- Now require Ruby 2.6 because
redis-client
does. - Eagerly close subscribed connection when using
subscribe_with_timeout
. See #1259. - Add
exception
flag inpipelined
allowing failed commands to be returned in the result array when set tofalse
.
v5.1.0
-
multi
now accept awatch
keyword argument likeredis-client
. See #1236. -
bitcount
andbitpos
now accept ascale:
argument on Redis 7+. See #1242 - Added
expiretime
andpexpiretime
. See #1248.
v5.0.8
- Fix
Redis#without_reconnect
for sentinel clients. Fix #1212. - Add
sentinel_username
,sentinel_password
for sentinel clients. Bumpredis-client
to>=0.17.0
. See #1213
v5.0.7
- Fix compatibility with
redis-client 0.15.0
when using Redis Sentinel. Fix #1209.
v5.0.6
- Wait for an extra
config.read_timeout
in blocking commands rather than an arbitrary 100ms. See #1175. - Treat ReadOnlyError as ConnectionError. See #1168.
v5.0.5
- Fix automatic disconnection when the process was forked. See #1157.
v5.0.4
- Cast
ttl
argument to integer inexpire
,setex
and a few others.
v5.0.3
- Add
OutOfMemoryError
as a subclass ofCommandError
v5.0.2
- Fix
Redis#close
to properly reset the fork protection check.
v5.0.1
- Added a fake
Redis::Connections.drivers
method to be compatible with older sidekiq versions.
v5.0.0
- Default client timeout decreased from 5 seconds to 1 second.
- Eagerly and strictly cast Integer and Float parameters.
- Allow to call
subscribe
,unsubscribe
,psubscribe
andpunsubscribe
from a subscribed client. See #1131. - Use
MD5
for hashing server nodes inRedis::Distributed
. This should improve keys distribution among servers. See #1089. - Changed
sadd
andsrem
to now always return an Integer. - Added
sadd?
andsrem?
which always return a Boolean. - Added support for
IDLE
paramter inxpending
. - Cluster support has been moved to a
redis-clustering
companion gem. -
select
no longer record the current database. If the client has to reconnect afterselect
was used, it will reconnect to the original database. - Better support Float timeout in blocking commands. See #977.
-
Redis.new
will now raise an error if provided unknown options. - 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
andreconnect_delay
, you can pass precise sleep durations toreconnect_attempts
instead. - Require Ruby 2.5+.
- Removed the deprecated
queue
andcommit
methods. Usepipelined
instead. - Removed the deprecated
Redis::Future#==
. - Removed the deprecated
pipelined
andmulti
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.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.