Merb + memcache-client for sessions broken
Reported by Glenn Rempe | April 26th, 2008 @ 11:53 PM
Merb requires use of the memcache-client gem for access to memcached .
In my Merb app I am using the DataMapper ORM + memcache for sessions. Unfortunately the client that Merb has chosen to rely on has hard coded dependencies on ActiveRecord being used.
e.g. memcache-client/memcache_util.rb is peppered with logging statements such as:
ActiveRecord::Base.logger.debug "MemCache Error: #{err.message}"
I have filed a bug with that team asking them to fix it. I don't know how long they typically take to fix such issues. In any case Merb has hamstrung itself by using this library. I should be able to use the memcache session store with NO ORM in use in Merb at all right?
The bug to Merb is to allow selection of different memcache client libraries based on how up-to-date they are and how well they perform. Just like I can choose different ORM's. If this level of abstraction is too hard then Merb should switch to a new client that allows use across all Merb config scenarios.
Here is the bug I filed with the memcache-client team.
http://rubyforge.org/tracker/ind...
Cheers.
Comments and changes to this ticket
-
Glenn Rempe April 27th, 2008 @ 12:10 AM
After checking out the latest code from SVN it appears that the memcache-client team has put in a workaround for this:
--
Author: zenspider
Date: Fri Mar 21 22:20:34 2008 +0000
Minor edit to remove ActiveRecord dependency in memcache_client.rb. If ActiveRecord is available, it will be used for logging. Otherwise, logging will be ignored. Reviewed by Eri
From p4 revision #3584
git-svn-id: svn://rubyforge.org/var/svn/seattlerb@422 d2e05cf2-00e0-46e5-a3de-bbee4d6b9404
--
However, it would still be nice to use other, perhaps more performant, versions of a memcache client in Merb.
-
-
Yehuda Katz (wycats) April 30th, 2008 @ 09:42 PM
- → State changed from new to resolved
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
