Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

MemCacheStore shouldn't raise without memcache-client

#6497

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.

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

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. jkarlsson
    jkarlsson

    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.

    April 18th, 2011 @ 06:53 PM