mock_redis breaking changes
Updated December 4, 2026
On this page
Latest version 0.56.0, released November 2, 2026. Source repository
Its 0.37.0 release requires Ruby 2.7 or later. Ruby end of life dates.
mock_redis 0.56.0 breaking changes
- Behavior changed
GEOPOS
Under RESP3, GEOPOS now returns coordinates as Floats. Code that expects the previous return type under RESP3 must be updated. github.com - Behavior changed
SET
SET now rejects nonpositive expiration values before changing key state. Code that passes zero or negative expirations will now get an error. github.com
mock_redis 0.47.0 breaking changes
- Removed
mock_redis 0.47.0 no longer supports redis-rb versions below 5.x, so projects using those versions must upgrade redis-rb to 5.x. github.com
mock_redis 0.42.0 breaking changes
- Behavior changed
Ruby 2.x is no longer supported, so users on Ruby 2.x must upgrade their Ruby version before using this release. github.com
mock_redis 0.37.0 breaking changes
- Removed
Ruby 2.6 and older are no longer supported, so the gem now requires Ruby 2.7 or newer. Users on those Ruby versions must upgrade Ruby before updating. github.com
mock_redis 0.31.0 breaking changes
- Behavior changed
hmget
Calling hmget with an empty list of fields now raises CommandError. Code that passes an empty field list must check for it or handle the error. github.com
mock_redis 0.30.0 breaking changes
- Removed
Ruby 2.4 and Ruby 2.5 are no longer supported because they are end of life. Users on those Ruby versions must upgrade Ruby before upgrading this gem. github.com
Older versions
14 older versions, each with its first changes. Sign up to see every change
Show 14 older versions
mock_redis 0.29.0 breaking changes
- Behavior changed
hdel
hdel now raises an error when it is called with an empty array, where it previously did not. Code that passes an empty array must be changed to avoid the error. github.com - Behavior changed
zadd
zadd now stores its arguments without the conditional type conversion it used to apply. Code that relied on the converted values must be updated. github.com
mock_redis 0.25.0 breaking changes
- Behavior changed
mget
Calling mget with an empty array now raises an error instead of returning a result. Code that passes an empty array must be changed. github.com
mock_redis 0.24.0 breaking changes
- Behavior changed
exists
The exists method now returns an integer instead of its previous return value. Code that depends on the old return value must be updated, or switch to the new exists? method. github.com
mock_redis 0.23.0 breaking changes
- Behavior changed
setex
Calls to setex with a negative timeout now raise an error instead of being accepted. Code passing negative timeouts must be changed to pass a valid timeout. github.com
mock_redis 0.22.0 breaking changes
- Behavior changed
hmset
The hmset command now converts every key to a string. Code that relied on non-string keys being stored as given should convert them to strings itself. github.com
mock_redis 0.21.0 breaking changes
- Behavior changed
time
The mock's time command was changed to return an array of two integers, matching Redis. Code that relied on the previous return value may need updating. github.com
mock_redis 0.20.0 breaking changes
- Removed
Ruby 2.3 and older are no longer supported. Users on those Ruby versions must upgrade Ruby. github.com - Behavior changed
On a type mismatch, empty strings are now kept instead of being dropped. Code relying on the old result may need updating. github.com
And 1 more in this version.
mock_redis 0.19.0 breaking changes
- Removed
Ruby versions older than 2.2 are no longer supported, so users on older Ruby must upgrade before using this release. github.com
mock_redis 0.18.0 breaking changes
- Behavior changed
hincrbyfloat
The message of the exception raised by hincrbyfloat now matches Redis 4. Code that matches on the old message must be updated. github.com - Behavior changed
hset
The return value of hset changed to false when the field exists. Code that checks hset's return value should be reviewed. github.com
mock_redis 0.17.0 breaking changes
- Removed
Ruby 1.9.3 is no longer supported, and neither is JRuby 1.7.x. Code running on those runtimes must move to a newer version. github.com - Behavior changed
ZREM
Calling ZREM with an empty array argument now raises an error instead of passing silently. Code that relies on the old behavior must check for empty input first. github.com
And 1 more in this version.
mock_redis 0.13.0 breaking changes
- Behavior changed
zrangebyscore
The zrangebyscore command now checks that its min and max parameters are floats, so code passing other types may now fail. github.com - Behavior changed
zremrangebyscore
The zremrangebyscore command now checks that its min and max parameters are floats, so code passing other types may now fail. github.com
And 2 more in this version.
mock_redis 0.11.0 breaking changes
- Behavior changed
Error messages were changed to match Redis 2.8, and Redis 2.6 or lower is no longer supported. Code that matches on old error message text or relies on Redis 2.6 behavior must be updated. github.com - Behavior changed
Passing empty arrays as arguments now raises an error instead of being accepted. Code that passes empty arrays must be changed. github.com
And 1 more in this version.
mock_redis 0.5.0 breaking changes
- Behavior changed
Calls made through a pipeline now return an array of results. Code that relied on the previous return value must be updated to read that array. github.com
mock_redis 0.4.0 breaking changes
- Behavior changed
zrange
Out-of-range arguments to zrange are now handled correctly, which may change returned results for those cases. github.com - Behavior changed
zremrangebyrank
Out-of-range arguments to zremrangebyrank and zrange are now handled correctly, so code relying on the previous results for those cases may see different output. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.