Skip to content
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

Remove ActiveSupport::Cache::MemCacheStore #6296

Closed

Conversation

guilleiguaran
Copy link
Member

memcache-client was deprecated in favor of dalli in 2010, now users should be using dalli_store instead of the old mem_cache_store

@guilleiguaran
Copy link
Member Author

cc @jeremy @spastorino

@rafaelfranca
Copy link
Member

👍

@arunagw
Copy link
Member

arunagw commented May 13, 2012

Awesome ❤️

@@ -42,7 +42,8 @@
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)

# Use a different cache store in production.
# config.cache_store = :mem_cache_store
# Add dalli to Gemfile for :dalli_store
# config.cache_store = :dalli_store
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to set the cache_store to :dalli_store? Why the gem doesn't do that automatically?

Copy link
Member Author

Choose a reason for hiding this comment

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

dalli isn't shipped with a railtie to set this config

cc @mperham

Copy link
Contributor

Choose a reason for hiding this comment

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

Just a PR away. :-)

Copy link
Member

Choose a reason for hiding this comment

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

@mperham just sent one ;) ❤️

@jeremy
Copy link
Member

jeremy commented May 16, 2012

-1 on removing the cache store entirely. This will make it really painful to upgrade existing apps.

Let's just change the default cache store to Dalli's.

We also need to consider how apps should upgrade cache stores. Existing apps are talking to memcache servers full of marshalled data, and reading it with Dalli won't work. You have to change the cache namespace, or clear it entirely.

The raw API changes slightly too, from a boolean arg to an options hash.

@jeremy
Copy link
Member

jeremy commented May 16, 2012

Another option: keep the cache store; just switch the internal lib from memcache-client to dalli.

steveklabnik added a commit to steveklabnik/dalli that referenced this pull request May 17, 2012
@guilleiguaran
Copy link
Member Author

@jeremy I'm keeping cache store switching it from memcache-client to dalli. See #6903.

Closing this, see #6903

@tkrotoff
Copy link

tkrotoff commented Sep 3, 2012

Could you also update the guide "Caching with Rails: An overview": http://edgeguides.rubyonrails.org/caching_with_rails.html#activesupport-cache-memcachestore

@guilleiguaran
Copy link
Member Author

@tkrotoff done, thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants