touch + memcahier + heroku == hang #312

Closed
tomandersen opened this Issue Dec 29, 2012 · 2 comments

3 participants

@tomandersen

I don't know if this is a problem with memcachier or dalli, but calling touch() from a dalli client hangs when I am on heroku, but works fine on my dev machine with some local memcache system.

I am using heroku, with a sinatra/unicorn/dalli system. Right now in dev so on the free memcachier plan.

https://github.com/mperham/dalli/blob/master/lib/dalli/client.rb see touch()

I don't know much more than that right now.
cache = Dalli::Client.new
cache.touch(key, 1200) # hangs on heroku with memcachier

My workaround is simply to call cache.set(), since I have the value handy there seems to be little speed issues.

@tomandersen

I got a reply from memcachier about this, they 'don't support touch'. Don't know if there is a way to catch that, or what you would do (exception?) if you did.

@alevy

As an update, this has been fixed in MemCachier now - touch is now supported

@mperham mperham closed this May 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment