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
Episode overview
This episode is a short developer briefing from Rails Daily.
It explains recent repository work in plain language.
- Show: Rails Daily
- Published: 2026-02-08T11:02:08Z
- Audio duration: PT1M19S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
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.
Nearby episodes from Rails Daily
- Test Configuration Fix
- Framework Cleanup and Load Hook Guards
- Transaction Controls and Performance Fixes
- Documentation Fix and Dalli Upgrade
- ActiveRecord Composite Key Fix and Documentation Update
- Environment Variable Revision and Ruby 4.0.1 Update
- Query Logging Enhancement and Documentation Fixes
- Error Handling and Database Improvements