Memcached set() fails: WRITE FAILURE

偶尔善良 提交于 2019-12-03 21:41:48

I had the same problem today.

It turns out you need to use 127.0.0.1 instead of localhost.

Really annoying.

Sounds almost as if you're hitting the memory limit on Memcached. What kinds of things are you writing? How big are they?

If you Memcached server is full or almost full, I might even expect this to happen.

On the other hand, double check that you don't have a rate-limiting firewall installed. Perhaps it sees you banging away at your Memcached box and is freaking out.

Lastly, make sure that you're closing your Memcached connection when you're done with it. If you leave too many open, things get ugly.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!