Skip to content

Properly populate and invalidate the local cache during CAS operations #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

casperisfine
Copy link
Contributor

MemcachedStore prepends the Strategy::LocalCache module, however it doesn't consider it at all in cas and cas_multi.

Because of this, these two methods can let the local cache in an inconsistent state (see the added tests).

Copy link

@dougedey-shopify dougedey-shopify left a comment

Choose a reason for hiding this comment

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

The tests definitely help !

@casperisfine casperisfine force-pushed the cas-local-cache-support branch from ac5a7b6 to 20600d2 Compare August 18, 2021 16:21
@casperisfine casperisfine force-pushed the cas-local-cache-support branch from 20600d2 to 7d0bafe Compare August 18, 2021 16:34
@casperisfine casperisfine merged commit b56137e into master Aug 18, 2021
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems August 18, 2021 17:05 Inactive
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems July 26, 2023 14:24 Inactive
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.

4 participants