[英]Rails/Memcached - MemCacheError (end of file reached): end of file reached
My Rails app is using a Memcached server.我的 Rails 应用程序使用 Memcached 服务器。
from some reason, from time to time, I'm getting MemCacheError (end of file reached): end of file reached
in my Rails application logs.由于某种原因,我的 Rails 应用程序日志中不时出现
MemCacheError (end of file reached): end of file reached
。
any ideas why?任何想法为什么?
Since you're using memcache-client
, and that code has been deprecated since 2010, it might simply be a bug that hasn't ever been fixed.由于您使用的是
memcache-client
,并且该代码自 2010 年以来已被弃用,因此它可能只是一个从未修复过的错误。 The guy behind memcache-client
ended up coming up with dalli
( https://github.com/mperham/dalli ), which has much better support. memcache-client
背后的人最终提出了dalli
( https://github.com/mperham/dalli ),它有更好的支持。
Going into the source for memcache-client
reveals a couple of things.进入
memcache-client
的源代码揭示了一些事情。 The only places that could raise a MemCacheError
with those error messages are Cache#get
, Cache#put
, Cache#add
, or Cache#delete
.唯一可能引发带有这些错误消息的
MemCacheError
的地方是Cache#get
、 Cache#put
、 Cache#add
或Cache#delete
。 You can find those at ( https://github.com/mperham/memcache-client/blob/master/lib/memcache_util.rb ) on lines 42, 61, 76, and 91 respectively.您可以在 ( https://github.com/mperham/memcache-client/blob/master/lib/memcache_util.rb ) 的第 42、61、76 和 91 行分别找到它们。 Without knowing more about what you're trying to do, I can't help more than that, but hopefully that will get you started.
在不了解您要做什么的情况下,我无能为力,但希望这能让您入门。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.