Rails 请问 rails + memcached 乱码的问题

birbird · December 08, 2014 · 1864 hits

用的是 dalli,存 cache 是这么写的 Rails.cache.write(request.fullpath, response.body)

存进去取出来就多了一些乱七八糟的字符,好像这样 I"{"version":20141120}:ET

有人提供解决方案,但我用了这办法也不对 http://stackoverflow.com/questions/13955160/set-raw-value-with-rails-cache-write

请问有更好的办法么?

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.