This project is archived and is in readonly mode.

#6497 new
Jesse Storimer

MemCacheStore shouldn't raise without memcache-client

Reported by Jesse Storimer | March 1st, 2011 @ 07:39 PM

Trying to use mem_cache_store with libmemcached (https://rubygems.org/gems/memcached) is difficult because mem_cache_store raises a LoadError unless the memcache-client gem is available. This isn't necessary because the 'memcached' gem provides a compatible API for devs who want a faster interface to memcached, but we still have to have memcache-client installed so ActiveSupport doesn't die.

The mem_cache_store class even mentions that it's compatible with libmemcached (https://github.com/rails/rails/blob/master/activesupport/lib/active...)

Rails should also mention somewhere (the Guides?) to use dalli. The memcache-client gem is no longer maintained, the dalli gem is the successor and already has a AS cache store implementation included with the gem.

I attached a patch that removes the re-raising of the LoadError.

Comments and changes to this ticket

  • jkarlsson

    jkarlsson April 18th, 2011 @ 06:53 PM

    I second this patch. I'm also using the memcached gem and was surprised when I was prompted to install memcache-client. I'm currently avoiding the problem by simply having an empty lib/memcache.rb file.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages