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

# dalli breaking changes

dalli 5.0.0 (February 6, 2026) is its newest release with breaking changes, 5 of them. The first: dalli 5.0.0 drops support for Ruby 3.1 and 3.2 and requires Ruby 3.3 or later. Every breaking API change we have recorded in dalli on RubyGems: 23 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.5.0`. [Source repository](https://github.com/petergoldstein/dalli)

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

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 5 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [5.0.0](#v-5-0-0): 18 breaking changes in 3 versions.

## dalli 5.0.0 breaking changes

dalli 5.0.0, released February 6, 2026: 5 breaking changes.

- **Removed**  

Dalli 5.0.0 requires Ruby 3.3 or later; JRuby remains supported. [github.com](https://github.com/petergoldstein/dalli/blob/v5.0.0/CHANGELOG.md)
- **Removed** `protocol`  

The :protocol option is no longer used and the binary protocol is gone. Requires memcached 1.6+; users on older memcached must upgrade or stay on Dalli 4.x. [github.com](https://github.com/petergoldstein/dalli/blob/v5.0.0/CHANGELOG.md)
- **Renamed** `db.operation`  

The db.operation attribute is renamed to db.operation.name. Update any tracing queries or dashboards that rely on the old name. [github.com](https://github.com/petergoldstein/dalli/blob/v5.0.0/CHANGELOG.md)
- **Renamed** `db.system`  

The db.system attribute is renamed to db.system.name. Update any tracing queries or dashboards that rely on the old name. [github.com](https://github.com/petergoldstein/dalli/blob/v5.0.0/CHANGELOG.md)
- **Behavior changed** `server.address`  

server.address now contains only the hostname and server.port is a separate integer attribute. Adjust any code parsing the old combined value. [github.com](https://github.com/petergoldstein/dalli/blob/v5.0.0/CHANGELOG.md)

## dalli 4.0.0 breaking changes

dalli 4.0.0, released January 11, 2026: 6 breaking changes.

- **Removed** `:compression`  

Use the :compress option instead. [github.com](https://github.com/petergoldstein/dalli/blob/v4.0.0/CHANGELOG.md)
- **Removed** `close_on_fork`  

Use reconnect_on_fork instead. [github.com](https://github.com/petergoldstein/dalli/blob/v4.0.0/CHANGELOG.md)
- **Removed** `Dalli.Server`  

Replace Dalli::Server with Dalli::Protocol::Binary. [github.com](https://github.com/petergoldstein/dalli/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

The gem now requires Ruby 3.1 or later; upgrade Ruby before updating dalli. [github.com](https://github.com/petergoldstein/dalli/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed** `Dalli.Marshal serializer`  

A security warning is now emitted when using the default Marshal serializer; set silence_marshal_warning: true to silence it. [github.com](https://github.com/petergoldstein/dalli/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed** `Serializer .load`  

Errors from the serializer's load step are reraised as UnmarshalError, so code rescuing other error types may need updating. [github.com](https://github.com/petergoldstein/dalli/blob/v4.0.0/CHANGELOG.md)

## dalli 3.0.0 breaking changes

dalli 3.0.0, released October 13, 2021: 7 breaking changes.

- **Removed**  

The kgio gem is no longer supported because it is not relevant on Ruby 2.3+. [github.com](https://github.com/petergoldstein/dalli/blob/v3.0.0/History.md)
- **Removed** `dalli_store`  

The :dalli_store option is gone. Use Rails' official :mem_cache_store instead. [github.com](https://github.com/petergoldstein/dalli/blob/v3.0.0/History.md)
- **Behavior changed**  

The Rack session adapter no longer supports thread-unsafe configurations. Add the connection_pool gem to your Gemfile to keep session operations thread-safe. [github.com](https://github.com/petergoldstein/dalli/blob/v3.0.0/History.md)
- **Behavior changed**  

Values larger than memcached allows used to be truncated with a warning. They now raise an error, so code storing large values must handle that error. [github.com](https://github.com/petergoldstein/dalli/blob/v3.0.0/History.md)
- **Behavior changed**  

Errors while marshalling values raise an exception rather than only printing an error message. [github.com](https://github.com/petergoldstein/dalli/blob/v3.0.0/History.md)
- **Behavior changed** `servers`  

Invalid servers arguments are now rejected, so code passing malformed server values may now fail. [github.com](https://github.com/petergoldstein/dalli/blob/v3.0.0/History.md)
- **Default changed**  

Compression defaults to true for values greater than 4KB. Code relying on uncompressed stored values must turn compression off explicitly. [github.com](https://github.com/petergoldstein/dalli/blob/v3.0.0/History.md)

## dalli 2.0.0 breaking changes

dalli 2.0.0, released March 29, 2012: 5 breaking changes.

- **Removed**  

Ruby 1.8.6 is no longer supported by this release. [github.com](https://github.com/petergoldstein/dalli/blob/v2.0.0/History.md)
- **Removed** `em-synchrony`  

Connections using em-synchrony are no longer supported. [github.com](https://github.com/petergoldstein/dalli/blob/v2.0.0/History.md)
- **Removed** `memcache-client`  

The memcache-client compatibility layer and its upgrade documentation were removed. [github.com](https://github.com/petergoldstein/dalli/blob/v2.0.0/History.md)
- **Removed** `unix socket`  

Connections over unix sockets are no longer supported. [github.com](https://github.com/petergoldstein/dalli/blob/v2.0.0/History.md)
- **Behavior changed** `dalli_store`  

dalli_store no longer uses ActiveSupport::Cache::Entry, and data stored by 2.x is not readable by 1.x. Namespace keys and roll out the upgrade gradually so keys do not clash. [github.com](https://github.com/petergoldstein/dalli/blob/v2.0.0/History.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.
