Rails Daily

Rails Daily: Dalli Gem Version Pin

Rails has temporarily pinned the Dalli gem to version 4.x to prevent compatibility issues after version 5.0.0 removed the binary protocol, causing uninitialized constant errors.

Duration: PT1M19S

https://podlog.io/listen/rails-daily-a67c65cf/episode/rails-daily-dalli-gem-version-pin-7c6d9f19

Transcript

Good morning, this is Rails Daily for February 8th, 2026.

Yasuo Honda merged a pull request to pin the Dalli gem to version 4.x across the Rails codebase. This change addresses a breaking compatibility issue introduced in Dalli version 5.0.0, which removed the binary protocol and caused "uninitialized constant Dalli::Protocol::Binary" errors in Rails applications.

The modification updates the Gemfile to restrict Dalli to the 4.x series, preventing automatic updates to the problematic 5.0 release. This is being treated as a temporary workaround while a permanent fix is being discussed in pull request 56721.

The change affects Rails applications that rely on Dalli for memcached integration, ensuring they continue to function without encountering the protocol-related errors. The pin was implemented using conservative bundler updates to maintain stability across existing deployments.

What's next: The Rails team will continue working on pull request 56721 for a permanent solution to the Dalli 5.0 compatibility issue. Teams using Dalli should be aware of this temporary version restriction when updating dependencies.

That's your Rails update for today. Stay tuned for tomorrow's briefing.