node-memcache icon indicating copy to clipboard operation
node-memcache copied to clipboard

seems, "get" method contains a mistake

Open shunanya opened this issue 14 years ago • 1 comments

Hi, I try to use your library in our node-based application that generates a lot of write/read requests to memcached server (with quite big rate). All is fine, but sometimes I receive from get method callback a strange result - error = undefined and data = null. Note, I check manually memcached value for the same key - data is exists and has a correct value. Can you please advise what problem can be here? And how it can be resolved? Simon

shunanya avatar Oct 19 '11 10:10 shunanya

Hi Simon,

I found a fork which handles the memcache GET requests with buffers and is maybe more safe. I will try to merge this as soon as possible and release a new version... or feel free to try it out yourself before. There's the commit:

https://github.com/ddopson/node-memcache/commit/bfdb529487c489e497b3912efcff542aa96be91a

Regards,

Tim

elbart avatar Oct 19 '11 19:10 elbart