---
title: "mock_redis 0.56.0 Breaking Changes on RubyGems | Since.dev"
description: "What each mock_redis release removed, renamed or changed: 33 breaking changes in 20 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/mock_redis
last_updated: 2026-12-04
---

# mock_redis breaking changes

mock_redis 0.56.0 (November 2, 2026) is its newest release with breaking changes, 2 of them. The first: Behavior changed GEOPOS. Every breaking API change we have recorded in mock_redis on RubyGems: 33 breaking changes in 20 versions. Below, its 20 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.56.0`, released November 2, 2026. [Source repository](https://github.com/sds/mock%5Fredis)

Its 0.37.0 release requires [Ruby 2.7](https://since.dev/calendar/ruby/2.7.md) or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [0.4.0](#v-0-4-0) to [0.56.0](#v-0-56-0): 31 breaking changes in 19 versions.

## mock_redis 0.56.0 breaking changes

mock_redis 0.56.0, released November 2, 2026: 2 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](https://github.com/sds/mock%5Fredis/releases/tag/v0.56.0)
- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.56.0)

## mock_redis 0.47.0 breaking changes

mock_redis 0.47.0, released November 27, 2024: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/blob/v0.47.0/CHANGELOG.md)

## mock_redis 0.42.0 breaking changes

mock_redis 0.42.0, released January 15, 2024: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.42.0)

## mock_redis 0.37.0 breaking changes

mock_redis 0.37.0, released August 8, 2023: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.37.0)

## mock_redis 0.31.0 breaking changes

mock_redis 0.31.0, released April 10, 2022: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.31.0)

## mock_redis 0.30.0 breaking changes

mock_redis 0.30.0, released February 17, 2022: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.30.0)

## Older versions

14 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### mock_redis 0.29.0 breaking changes

mock_redis 0.29.0, released August 12, 2021: 2 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](https://github.com/sds/mock%5Fredis/releases/tag/v0.29.0)
- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.29.0)

### mock_redis 0.25.0 breaking changes

mock_redis 0.25.0, released June 25, 2020: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.25.0)

### mock_redis 0.24.0 breaking changes

mock_redis 0.24.0, released June 18, 2020: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.24.0)

### mock_redis 0.23.0 breaking changes

mock_redis 0.23.0, released April 22, 2020: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.23.0)

### mock_redis 0.22.0 breaking changes

mock_redis 0.22.0, released October 10, 2019: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/releases/tag/v0.22.0)

### mock_redis 0.21.0 breaking changes

mock_redis 0.21.0, released June 26, 2019: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/blob/v0.21.0/CHANGELOG.md)

### mock_redis 0.20.0 breaking changes

mock_redis 0.20.0, released May 3, 2019: 3 breaking changes.

- **Removed**  

Ruby 2.3 and older are no longer supported. Users on those Ruby versions must upgrade Ruby. [github.com](https://github.com/sds/mock%5Fredis/blob/v0.20.0/CHANGELOG.md)
- **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](https://github.com/sds/mock%5Fredis/blob/v0.20.0/CHANGELOG.md)

And 1 more in this version.

### mock_redis 0.19.0 breaking changes

mock_redis 0.19.0, released August 3, 2018: 1 breaking change.

- **Removed**  

Ruby versions older than 2.2 are no longer supported, so users on older Ruby must upgrade before using this release. [github.com](https://github.com/sds/mock%5Fredis/blob/v0.19.0/CHANGELOG.md)

### mock_redis 0.18.0 breaking changes

mock_redis 0.18.0, released March 22, 2018: 2 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](https://github.com/sds/mock%5Fredis/blob/v0.18.0/CHANGELOG.md)
- **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](https://github.com/sds/mock%5Fredis/blob/v0.18.0/CHANGELOG.md)

### mock_redis 0.17.0 breaking changes

mock_redis 0.17.0, released August 9, 2016: 3 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](https://github.com/sds/mock%5Fredis/blob/v0.17.0/CHANGELOG.md)
- **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](https://github.com/sds/mock%5Fredis/blob/v0.17.0/CHANGELOG.md)

And 1 more in this version.

### mock_redis 0.13.0 breaking changes

mock_redis 0.13.0, released May 2, 2014: 4 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](https://github.com/sds/mock%5Fredis/blob/v0.13.0/CHANGELOG.md)
- **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](https://github.com/sds/mock%5Fredis/blob/v0.13.0/CHANGELOG.md)

And 2 more in this version.

### mock_redis 0.11.0 breaking changes

mock_redis 0.11.0, released January 22, 2014: 3 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](https://github.com/sds/mock%5Fredis/blob/v0.11.0/CHANGELOG.md)
- **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](https://github.com/sds/mock%5Fredis/blob/v0.11.0/CHANGELOG.md)

And 1 more in this version.

### mock_redis 0.5.0 breaking changes

mock_redis 0.5.0, released August 27, 2012: 1 breaking change.

- **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](https://github.com/sds/mock%5Fredis/blob/v0.5.0/CHANGELOG.md)

### mock_redis 0.4.0 breaking changes

mock_redis 0.4.0, released March 5, 2012: 2 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](https://github.com/sds/mock%5Fredis/blob/v0.4.0/CHANGELOG.md)
- **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](https://github.com/sds/mock%5Fredis/blob/v0.4.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
