Easy way for accessing memcached from node.js

Ezequiel picture Ezequiel · Jun 4, 2011 · Viewed 33.5k times · Source

I want to know if there is a good driver or native implementation to connect node.js directly to memcached.

Answer

Andrey Lushnikov picture Andrey Lushnikov · May 3, 2012

Here's my experience of using couple of node-memcached modules

  1. 3rd-Eden/node-memcached. The project doesn't seem to be stable and has bugs with storing BLOBS (see issue #46 and issue #48 for details). Moreover I found it's code quite hard to read (and thus hard to update), so I wouldn't suggest using it in your projects.

  2. elbart/node-memcache seems to work fine, and I feel good about the way it's source code is written, but it doesn't support storing BLOBs (there's a fork that is said to add the ability, but I haven't tested it)

  3. overclocked/mc is the one I like a lot. This is the only one that is capable of storing BLOBs. It has nice documentation, its code looks good and it is easy-to-use.

Currently I use overclocked/mc in my project and everything seems to be working fine.