3rd-Eden/node-memcached — pull request #65 by jkrems (2012-10-20 21:18:46+00:00)
Title: Exposes raw memcache response for empty values

Added test case and fix for setting and getting empty strings

Since I wasn't completely sure if some other parts of the code may be relying on the token-line being passed instead of the data-section whenever the data-section was empty/not present, I tried to keep the fix as local as possible.

This pull request also includes the possibility to run the test suite using `npm test` and to run the test suite with a custom memcached-server via `MEMCACHED__HOST=localhost npm test`. Including the "require('should')"-line was necessary for me to get the tests running. Otherwise ok.should was always null.

If you only want to have the actual fix, ignore everything but the four lines in `lib/memcached.js`.

This pull request refers to: https://github.com/3rd-Eden/node-memcached/issues/64