3rd-Eden/node-memcached — pull request #71 by sebastianseilund (2012-11-19 23:47:23+00:00)
Title: Fix for issue with values starting with OK, VALUE etc.

Hi Arnout

Thanks for your awesome node module!

This single commit should fix the issue with values starting with keywords such as OK, VALUE as mentioned here: https://github.com/3rd-Eden/node-memcached/issues/59.

The change includes escaping line breaks in values before set commands, and unescaping after get command.

I also added the following unit tests

- Added unit tests for OK and for VALUE
- Added unit test for checking correctly escaped line breaks

All unit tests pass after the change.

Please let me hear form you, if you have any questions.