Skip to content

Improve MemCacheStoreCAS patch to properly pass serialized entries to Dalli#624

Merged
Edouard-chin merged 1 commit intoShopify:mainfrom
byroot:cas-serialization
Feb 27, 2026
Merged

Improve MemCacheStoreCAS patch to properly pass serialized entries to Dalli#624
Edouard-chin merged 1 commit intoShopify:mainfrom
byroot:cas-serialization

Conversation

@byroot
Copy link
Contributor

@byroot byroot commented Feb 27, 2026

Instead it was relying on the fact that dalli will Marshal those, but it's much preferable to rely on the Active Support layer instead, given Dalli 4 deprecate Marshal and Dalli 5 no longer does it by default.

@byroot
Copy link
Contributor Author

byroot commented Feb 27, 2026

cc @adrianna-chang-shopify @Edouard-chin (sorry not sure who watches the repo, and you are the last few to have merged / released :) )

end
end

if ActiveSupport::Cache::MemCacheStore.instance_method(:deserialize_entry).arity == 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is no longer necessary as we require Rails >= 7.0

… Dalli

Instead it was relying on the fact that dalli will Marshal those, but
it's much preferable to rely on the Active Support layer instead, given
Dalli 4 deprecate Marshal and Dalli 5 no longer does it by default.
@Edouard-chin Edouard-chin merged commit 596fd7f into Shopify:main Feb 27, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants