{"_id":"nodecached","_rev":"33-a36afcad746ea549fb8366191a4f65e7","name":"nodecached","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"nodecached","version":"0.0.1","description":"Memcached server written in node.js, just because.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"# nodecached\n\nMemcached server written in node.js\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.1","dist":{"shasum":"c93b7b16e41ffda07b779bdbd61055915bdfc6a9","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.1.tgz","integrity":"sha512-qsx+Vzr+JlIiBP32MYUJ4y/eNUCQgsg+MVNGezKycU3JqfvecIDLnMzQ8PQs+Oo9og3HRaanHfc1I8bIxMDk6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyD9qxHRisC4Ism/McZWLD9WLnQIFlGjYk0FeXTVN+bwIhAMxp/4eBLTJycBg/XqIMcLYo9mA7Frdu91graWx7ayHG"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.2":{"name":"nodecached","version":"0.0.2","description":"Memcached server written in node.js, just because.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nMemcached server and client written in node.js\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.2","dist":{"shasum":"52b4ddefe697a6629ed05a7f1ec6fa11ebf8fa02","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.2.tgz","integrity":"sha512-PhwxtL+zePlrrcUTaEr4uZyLv3rr8XVf0O2odV3eKtzi3pQCTp8vRk2+FjFbwCxmSk6AG5CEKmkrcSwIg7M1TQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiH/DPhc2gXoVaKP0an9qY/4RmouS4dg3UVIji4AdJOwIgEdrRbbVAALcgMhwK2dGrkawpvzIwGNfnt9eloqWRpNY="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.3":{"name":"nodecached","version":"0.0.3","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--error`: Return an error on all queries. Useful for measuring socket performance, without parsing commands.\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.3","dist":{"shasum":"7accf111f4cbfdde008403a0965ca2c187248acf","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.3.tgz","integrity":"sha512-iAPoDoZ349+QjgRMtFfYoXd2JYaWGhROh6bibC5HnTv8+GzR7Md7EH9IofwE8C1/8+LoYNm9sDVxvj3hyizwww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7q/QLh6IorbHsqQQ1hUl3C/zllknJ8BW9AvNrQKnLUAiByIQCLX6sqJK0SypWKhExDzqwo3nUW0Hqq/hdBcNtzvA=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.5":{"name":"nodecached","version":"0.0.5","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--error`: Return an error on all queries. Useful for measuring socket performance, without parsing commands.\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.5","dist":{"shasum":"afc5f46a123c9a4a45dcaf053e72a6448f6f1255","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.5.tgz","integrity":"sha512-If+E6rKTi3opcH6uGgwl/BMqZbvj7i9V7e5JoR2GmhzGNa4H9BRgo5I+9ZfBNT1tWHoxfq4VWLa5dJsQsPdf0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQDcsKUEqj7kqMR0YaQcT/rINe+taVgG0AactF2ZZFPAiANQSHcCxSzSPL63ntr06lq9yF+Ye8uXBhrLfb/Ng0Jiw=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.7":{"name":"nodecached","version":"0.0.7","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--error`: Return an error on all queries. Useful for measuring socket performance, without parsing commands.\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.7","dist":{"shasum":"30a77bf9faa5796738989ff104c60804fd130155","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.7.tgz","integrity":"sha512-OMhamqFxSCwdMuEV9+W1fr6tlW2LeiEcriEciQ5HP9MGLn1rf0tOlbnXtoddEj9HKBXX1f7v0v0aKnlo9M+GYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMryrIHijFGgL2egXcNeoqRDpD0wgd6yhYUN1aUG39BgIhALTQVwXS12o/m0wAwGkNzpKegbp/aWWl9baJ9fU+/PtR"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.8":{"name":"nodecached","version":"0.0.8","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--error`: Return an error on all queries. Useful for measuring socket performance, without parsing commands.\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.8","dist":{"shasum":"6cffe3e7f76747a5f214f51b6137f3d72f376a51","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.8.tgz","integrity":"sha512-8ww0OMsDm45ND6g+GkeEsQZ7Mchp8Ty1fW1UEld87Lo2fBI0HsEnhaXNz80arIzuG3h0Zj07LQ6iuIdk16mysA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRktPdv7WDbfFQVSZ0vniAR/rkio7FZxZtbekGqhF1lAIgQhtrzztcj3jhrWDHu+m1N8eoYtxD89U8UOMaLzpAnF0="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.9":{"name":"nodecached","version":"0.0.9","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js.\n\nThe client is a full-blown driver for any remote memcached servers.\n\nThe server is useful if you want a simple memcached server that integrates with your existing node.js infrastructure;\notherwise just use [the original memcached](http://memcached.org/) which is a very lightweight\nprogram and blazing fast.\n\nnodecached can also be used as an in-memory cache.\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--error`: Return an error on all queries. Useful for measuring socket performance, without parsing commands.\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n\n### Caveats\n\nnodecached may strive to be compatible with memcached, but it is not equivalent.\nTo start with, it will probably consume more memory and be slower -- in my tests about twice as slow.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n#### client.incr(key, value, callback)\n\nIncrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to add to the original.\n* callback: function(error, result) to call with the incremented value,\nor false if not found.\n\n#### client.decr(key, value, callback)\n\nDecrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to substract from the original.\n* callback: function(error, result) to call with the decremented value,\nor false if not found.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.9","dist":{"shasum":"75e3d099a8a6b461ad85526e892e3362a2644d09","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.9.tgz","integrity":"sha512-CsLWOoCZyx9MguDSA6EvqvaVv9HklQtNHLizUrU+EfWU9jQYi6EYXbn5K9KpXpOYSDwDHhprk8102yQ4m836pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5EVOEHcIY0pZIhA7ffvXktwoYsTw1sXM3rheHGprRrAiAzPEbECxs9nCKE1UN9qVpEHl3GFJcBO+pVE/WXt9PNIw=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.10":{"name":"nodecached","version":"0.0.10","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js.\n\nThe client is a full-blown driver for any remote memcached servers.\n\nThe server is useful if you want a simple memcached server that integrates with your existing node.js infrastructure;\notherwise just use [the original memcached](http://memcached.org/) which is a very lightweight\nprogram and blazing fast.\n\nnodecached can also be used as an in-memory cache.\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n* `--fast`: Do not parse commands and return an error on all queries. Useful for measuring socket performance.\n\n### Caveats\n\nnodecached may strive to be compatible with memcached, but it is not equivalent.\nTo start with, it will probably consume more memory and be slower -- in my tests about twice as slow.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n#### client.incr(key, value, callback)\n\nIncrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to add to the original.\n* callback: function(error, result) to call with the incremented value,\nor false if not found.\n\n#### client.decr(key, value, callback)\n\nDecrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to substract from the original.\n* callback: function(error, result) to call with the decremented value,\nor false if not found.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.10","dist":{"shasum":"5a42ceacfa6d9b0ca66b72147b45ce8af591f69b","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.10.tgz","noattachment":true},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.12":{"name":"nodecached","version":"0.0.12","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js.\n\nThe client is a full-blown driver for any remote memcached servers.\n\nThe server is useful if you want a simple memcached server that integrates with your existing node.js infrastructure;\notherwise just use [the original memcached](http://memcached.org/) which is a very lightweight\nprogram and blazing fast.\n\nnodecached can also be used as an in-memory cache.\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n* `--fast`: Do not parse commands and return an error on all queries. Useful for measuring socket performance.\n\n### Server Commands\n\nnodecached accepts the following commands, based on [the original commands](https://github.com/memcached/memcached/blob/master/doc/protocol.txt):\n\n#### Storage\n\nThere are a few storage commands that start with a header like this:\n\n`<command> <key> <flags> <exptime> <bytes>\\r\\n`\n\n* <command> is `set`, `add`, `replace`, `append` or `prepend`.\n\n* <key> is a string that will identify the element.\n\n* <flags> is a 32-bit integer to store with the value.\n\n* <exptime> is expiration time in seconds.\n\n* <bytes> is the length of the data in bytes.\n\nAfterwards the server will expect the data block:\n\n`<data>\\r\\n`\n\nwith a length of <bytes>.\n\nThe server will respond with:\n\n* `STORED\\r\\n` to indicate success.\n\n* `NOT_STORED\\r\\n` to indicate failure.\n\n#### Retrieval\n\nThe command `get` has the following syntax:\n\n`get <key>\\r\\n`\n\nwhere <key> is a string that identifies an element.\n\n#### Deletion\n\nThe command to delete a record is:\n\n`delete <key>\\r\\n`\n\nwhere the <key> identifies the record.\nThe server will respond with:\n\n* `DELETED` to indicate that the record has been deleted.\n\n* `NOT_DELETED` if the value is not found.\n\n#### Statistics\n\nThe following command will retrieve a set of stats.\n\n`stats\\r\\n`\n\nThe stats include `pid`, `total_items` and a few others.\n\n#### Version\n\nThis simple command retrieves the version of nodecached.\n\n`version\\r\\n`\n\nThe response will be something like this:\n\n`VERSION <string>`\n\nThe version <string> will always start with `nodecached-`.\n\n### Caveats\n\nnodecached may strive to be compatible with memcached, but it is not equivalent.\nTo start with, it will probably consume more memory and be slower -- in my tests about twice as slow.\nPlease use with care.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n#### client.incr(key, value, callback)\n\nIncrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to add to the original.\n* callback: function(error, result) to call with the incremented value,\nor false if not found.\n\n#### client.decr(key, value, callback)\n\nDecrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to substract from the original.\n* callback: function(error, result) to call with the decremented value,\nor false if not found.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.12","dist":{"shasum":"3c38e1a906cf9c3bc7e15cecef5cbac264ec54e0","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.12.tgz","integrity":"sha512-xdtzVan7gKBXvuIW1A4QmpDGNpQyQWkrozcI5xar/2Ra/L7OTYbW3e1AT9tnhahHqkGGSoxOTZgukjPR0uuYDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmXtZopQF00IJeePytvt0aRvQBYx8v84vaUxAeX9EfpAIhANNSLGTHNi8F3DRG0cOlrsTFhYGRBrT3rxMzGOMShRYj"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.0.13":{"name":"nodecached","version":"0.0.13","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js.\n\nThe client is a full-blown driver for any remote memcached servers.\n\nThe server is useful if you want a simple memcached server that integrates with your existing node.js infrastructure;\notherwise just use [the original memcached](http://memcached.org/) which is a very lightweight\nprogram and blazing fast.\n\nnodecached can also be used as an in-memory cache.\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n* `--fast`: Do not parse commands and return an error on all queries. Useful for measuring socket performance.\n\n### Server Commands\n\nnodecached accepts the following commands, based on [the original commands](https://github.com/memcached/memcached/blob/master/doc/protocol.txt):\n\n#### Storage\n\nThere are a few storage commands that start with a header like this:\n\n`<command> <key> <flags> <exptime> <bytes>\\r\\n`\n\n* <command> is `set`, `add`, `replace`, `append` or `prepend`.\n\n* <key> is a string that will identify the element.\n\n* <flags> is a 32-bit integer to store with the value.\n\n* <exptime> is expiration time in seconds.\n\n* <bytes> is the length of the data in bytes.\n\nAfterwards the server will expect the data block:\n\n`<data>\\r\\n`\n\nwith a length of <bytes>.\n\nThe server will respond with:\n\n* `STORED\\r\\n` to indicate success.\n\n* `NOT_STORED\\r\\n` to indicate failure.\n\n#### Retrieval\n\nThe command `get` has the following syntax:\n\n`get <key>\\r\\n`\n\nwhere <key> is a string that identifies an element.\n\n#### Deletion\n\nThe command to delete a record is:\n\n`delete <key>\\r\\n`\n\nwhere the <key> identifies the record.\nThe server will respond with:\n\n* `DELETED` to indicate that the record has been deleted.\n\n* `NOT_DELETED` if the value is not found.\n\n#### Statistics\n\nThe following command will retrieve a set of stats.\n\n`stats\\r\\n`\n\nThe stats include `pid`, `total_items` and a few others.\n\n#### Version\n\nThis simple command retrieves the version of nodecached.\n\n`version\\r\\n`\n\nThe response will be something like this:\n\n`VERSION <string>`\n\nThe version <string> will always start with `nodecached-`.\n\n### Caveats\n\nnodecached may strive to be compatible with memcached, but it is not equivalent.\nTo start with, it will probably consume more memory and be slower -- in my tests about three times as slow.\n\nOn the other hand, the absolute difference amounts to about 20 µs per request --\nthat is 20 millionths of a second.\nTypical network latencies are about 10 times bigger than that.\nSo the difference might not be an issue to you.\n\nIn any case, this is a preliminary version which is not even protocol-complete yet.\nPlease use with care.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n#### client.incr(key, value, callback)\n\nIncrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to add to the original.\n* callback: function(error, result) to call with the incremented value,\nor false if not found.\n\n#### client.decr(key, value, callback)\n\nDecrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to substract from the original.\n* callback: function(error, result) to call with the decremented value,\nor false if not found.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.0.13","dist":{"shasum":"a2afca760913ac3f645ba460a00c1657d24c70f0","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.0.13.tgz","integrity":"sha512-JKiYdRkI2ZRAc1kBPoVe7ArpcUwmrJSZLa/WllsNTcUQS0n/ZJGV4wRlaam9G7cm/pazBgYBSsKeT4MsrZfyzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUBf8ItmCPE1ALrcanJ3nHYNiWJh/qBwYXW/L0SdtLtAiEAq2lT40uTOjgMtNgafK+KfPGTzPUtntuV1S1GGEDfKF0="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.1.0":{"name":"nodecached","version":"0.1.0","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js.\n\nThe client is a full-blown driver for any remote memcached servers.\n\nThe server is useful if you want a simple memcached server that integrates with your existing node.js infrastructure;\notherwise just use [the original memcached](http://memcached.org/) which is a very lightweight\nprogram and blazing fast.\n\nnodecached can also be used as an in-memory cache.\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n* `--fast`: Do not parse commands and return an error on all queries. Useful for measuring socket performance.\n\n### Server Commands\n\nnodecached accepts the following commands, based on [the original commands](https://github.com/memcached/memcached/blob/master/doc/protocol.txt):\n\n#### Storage\n\nThere are a few storage commands that start with a header like this:\n\n`<command> <key> <flags> <exptime> <bytes>\\r\\n`\n\n* `<command>` is `set`, `add`, `replace`, `append` or `prepend`.\n\n* `<key>` is a string that will identify the element.\n\n* `<flags>` is a 32-bit integer to store with the value.\n\n* `<exptime>` is expiration time in seconds.\n\n* `<bytes>` is the length of the data in bytes.\n\nAfterwards the server will expect the data block:\n\n`<data>\\r\\n`\n\nwith a length of `<bytes>`.\n\nThe server will respond with:\n\n* `STORED\\r\\n` to indicate success.\n\n* `NOT_STORED\\r\\n` to indicate failure.\n\n#### Retrieval\n\nThe command `get` has the following syntax:\n\n`get <key>\\r\\n`\n\nwhere `<key>` is a string that identifies an element.\n\n#### Deletion\n\nThe command to delete a record is:\n\n`delete <key>\\r\\n`\n\nwhere the `<key>` identifies the record.\nThe server will respond with:\n\n* `DELETED` to indicate that the record has been deleted.\n\n* `NOT_DELETED` if the value is not found.\n\n#### Statistics\n\nThe following command will retrieve a set of stats.\n\n`stats\\r\\n`\n\nThe stats include `pid`, `total_items` and a few others.\n\n#### Version\n\nThis simple command retrieves the version of nodecached.\n\n`version\\r\\n`\n\nThe response will be something like this:\n\n`VERSION <string>`\n\nThe version `<string>` will always start with `nodecached-`.\n\n### Caveats\n\nnodecached may strive to be compatible with memcached, but it is not equivalent.\nTo start with, it will probably consume more memory and be slower -- in my tests about three times as slow.\n\nOn the other hand, the absolute difference amounts to about 20 µs per request --\nthat is 20 millionths of a second.\nTypical network latencies are about 10 times bigger than that.\nSo the difference might not be an issue to you.\n\nIn any case, this is a preliminary version which is not even protocol-complete yet.\nPlease use with care.\n\nMissing commands are: `gets`, `cas`, `slabs [command]`, `stats [option]`.\nGeneral purpose statistics are by no means complete.\nThe option `noreply` is not supported yet.\nUDP and binary protocols are out of scope at the moment.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n#### client.incr(key, value, callback)\n\nIncrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to add to the original.\n* callback: function(error, result) to call with the incremented value,\nor false if not found.\n\n#### client.decr(key, value, callback)\n\nDecrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to substract from the original.\n* callback: function(error, result) to call with the decremented value,\nor false if not found.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## References\n\n* [protocol.txt](https://github.com/memcached/memcached/blob/master/doc/protocol.txt)\n* [node-memcached](https://github.com/3rd-Eden/node-memcached)\n* [jscached](https://github.com/monsur/jscache)\n* [memcached configuration](https://code.google.com/p/memcached/wiki/NewConfiguringServer)\n\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.1.0","dist":{"shasum":"bdc553e591086dce31a99d768c11a5089f553c41","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.1.0.tgz","integrity":"sha512-R+75QnvR/j0RArO8t4bx2wqPwse86k0b1Q3wySOBCxj6MNhCN85KN7zCRm+XdWqAvTZqDqcibwPD+9Be2njCUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbllE6lDDW1xwcRieqXvwYhML//LzqUJLP5gJqyGkI5QIgQqCssXjYQC+j3qEmZg03C/T39Ue6u2LoUrWu8WPu1Dw="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.1.1":{"name":"nodecached","version":"0.1.1","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/alexfernandez/nodecached"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"*"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js.\n\nThe client is a full-blown driver for any remote memcached servers.\n\nThe server is useful if you want a simple memcached server that integrates with your existing node.js infrastructure;\notherwise just use [the original memcached](http://memcached.org/) which is a very lightweight\nprogram and blazing fast.\n\nnodecached can also be used as an in-memory cache.\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n* `--fast`: Do not parse commands and return an error on all queries. Useful for measuring socket performance.\n\n### Server Commands\n\nnodecached accepts the following commands, based on [the original commands](https://github.com/memcached/memcached/blob/master/doc/protocol.txt):\n\n#### Storage\n\nThere are a few storage commands that start with a header like this:\n\n`<command> <key> <flags> <exptime> <bytes>\\r\\n`\n\n* `<command>` is `set`, `add`, `replace`, `append` or `prepend`.\n\n* `<key>` is a string that will identify the element.\n\n* `<flags>` is a 32-bit integer to store with the value.\n\n* `<exptime>` is expiration time in seconds.\n\n* `<bytes>` is the length of the data in bytes.\n\nAfterwards the server will expect the data block:\n\n`<data>\\r\\n`\n\nwith a length of `<bytes>`.\n\nThe server will respond with:\n\n* `STORED\\r\\n` to indicate success.\n\n* `NOT_STORED\\r\\n` to indicate failure.\n\n#### Retrieval\n\nThe command `get` has the following syntax:\n\n`get <key>\\r\\n`\n\nwhere `<key>` is a string that identifies an element.\n\n#### Deletion\n\nThe command to delete a record is:\n\n`delete <key>\\r\\n`\n\nwhere the `<key>` identifies the record.\nThe server will respond with:\n\n* `DELETED` to indicate that the record has been deleted.\n\n* `NOT_DELETED` if the value is not found.\n\n#### Statistics\n\nThe following command will retrieve a set of stats.\n\n`stats\\r\\n`\n\nThe stats include `pid`, `total_items` and a few others.\n\n#### Version\n\nThis simple command retrieves the version of nodecached.\n\n`version\\r\\n`\n\nThe response will be something like this:\n\n`VERSION <string>`\n\nThe version `<string>` will always start with `nodecached-`.\n\n### Caveats\n\nnodecached may strive to be compatible with memcached, but it is not equivalent.\nTo start with, it will probably consume more memory and be slower -- in my tests about three times as slow.\n\nOn the other hand, the absolute difference amounts to about 20 µs per request --\nthat is 20 millionths of a second.\nTypical network latencies are about 10 times bigger than that.\nSo the difference might not be an issue to you.\n\nIn any case, this is a preliminary version which is not even protocol-complete yet.\nPlease use with care.\n\nMissing commands are: `gets`, `cas`, `slabs [command]`, `stats [option]`.\nGeneral purpose statistics are by no means complete.\nThe option `noreply` is not supported yet.\nUDP and binary protocols are out of scope at the moment.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n#### client.incr(key, value, callback)\n\nIncrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to add to the original.\n* callback: function(error, result) to call with the incremented value,\nor false if not found.\n\n#### client.decr(key, value, callback)\n\nDecrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to substract from the original.\n* callback: function(error, result) to call with the decremented value,\nor false if not found.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## References\n\n* [protocol.txt](https://github.com/memcached/memcached/blob/master/doc/protocol.txt)\n* [node-memcached](https://github.com/3rd-Eden/node-memcached)\n* [jscached](https://github.com/monsur/jscache)\n* [memcached configuration](https://code.google.com/p/memcached/wiki/NewConfiguringServer)\n\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","readmeFilename":"README.md","_id":"nodecached@0.1.1","dist":{"shasum":"3843a105e274438a3bea885200d445d5003c2286","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.1.1.tgz","integrity":"sha512-1m+4vTOhOHqnRrJLCcBcboVvvL6O0r9ANjoGD8IE1GhpL+/bGseEYNLQ8WpKtsrh3j3AV86DS5iPl+n/jCSnKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9loH1uP8oGNZy9ZVW2ZdwB8KAPZ/KpCOmrUoJWWVttAIgFMA+6TxbIKzcH/tZD9ok5kjF6FqngnW2o+SRaTX7e2g="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{}},"0.2.0":{"name":"nodecached","version":"0.2.0","description":"Memcached server written in node.js. Also contains a client compatible with node-memcached, and can be used as an in-memory cache too.","homepage":"https://github.com/alexfernandez/nodecached","contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alexfernandez/nodecached.git"},"dependencies":{"prototypes":"*","async":"*","testing":"*","optimist":"~0.6.0","memcached":"*","log":"1.4.0"},"keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"engines":{"node":"*"},"bin":{"nodecached":"bin/nodecached.js","nodecached-loadtest":"bin/loadtest.js"},"scripts":{"test":"node test.js"},"private":false,"gitHead":"5d71ddcaf969ca807f348ebc2e282f35a07acec9","bugs":{"url":"https://github.com/alexfernandez/nodecached/issues"},"_id":"nodecached@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"},"dist":{"integrity":"sha512-ZGOPRfdNCkj6oa/A+8ADC65pt4FREsk/mt8PHRg/ZyXWo41oV+jY/ibPnyf3vfWNOVfhGI3avg3kccdGEIAmEg==","shasum":"169af2e9994024258834ab797d2aa97f16ad0abb","tarball":"https://registry.npmjs.org/nodecached/-/nodecached-0.2.0.tgz","fileCount":20,"unpackedSize":117748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6XWdCRA9TVsSAnZWagAA/BsQAIytEafGRS8zhHsdTAi9\nzfiMuU0DFObz0GfY+YJvI3a6OMF5gcQUUvhYfjZfYy7pVsTx/qFpV/knioyv\nK/7yXWymEHK78N2UlS8l/xRNqpIW1hHnQMKp5QhKYgBH844gYWXK91aQ0FjY\nOxTZevjuz+PFVJDqxolRP9DAp2XAKMNDuuMENDWCLZZ3JsVmHn13uBwfhIc4\nHoSlsMaXTJsZS0QAVEKtiRVs1GYHkifroqXsZK7LsCrBpge2XBWTESK8o7tM\ncGzJ1P28Ld85ID9uJGjfgomc5D2fKs5ThPSSDJIwdgTNS14N/7zvK57ERTbQ\nogjwUX7XqRPGxT8vpPONJq3mzOaSWw8sq2VsF4Ns/ZYOjfcNiZr3PkJ5/XUZ\nOfsheVD0WO9yZl7yaq+J67w0rEJQnF3y8gGxbsAPvISHqEjC4ito4UBiCwj1\nCafBdjdPsMJ/aH3zEoXzdQ8jglnno5kmMvGiP+3x39ZugIkA2t8nXM9Mm/LG\nF3epBZxdWDSgysoxHIssWiV6SY1njx4l1qU0fKz6ueWu4Mp1U6m459MuvWmS\nu8FlyuhvXRWHObWVp1IlEqxiBJrr/iW1k13apBImsE3bEsy3isdMrXVHDng2\nf+iRhZDP5AxONuVUMyJdt9GmH4nWOkM94UAhScqqWjEh9hHgq81s5DTNatL3\n989s\r\n=rIoH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0UVTwU2QunlRr0nuPBkfS+hl7f6qrWZVzMfLezeXwaQIhAI12Qmy3OjTWvfXKTgxBguHhj6hppO57Un5EfythMfcF"}]},"maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nodecached_0.2.0_1558803868377_0.7459974230575497"},"_hasShrinkwrap":false}},"readme":"[![Build Status](https://secure.travis-ci.org/alexfernandez/nodecached.png)](http://travis-ci.org/alexfernandez/nodecached)\n\n# nodecached\n\nnodecached is a memcached-compatible server and client written in node.js.\n\nThe client is a full-blown driver for any remote memcached servers.\n\nThe server is useful if you want a simple memcached server that integrates with your existing node.js infrastructure;\notherwise just use [the original memcached](http://memcached.org/) which is a very lightweight\nprogram and blazing fast.\n\nnodecached can also be used as an in-memory cache.\n\n## Installation\n\nInstalling the package is very simple. Just install globally using npm:\n\n    # npm install -g nodecached\n\nOn Ubuntu or Mac OS X systems, use `sudo`:\n\n    $ sudo npm install -g nodecached\n\n## nodecached Server\n\nnodecached is primarily a server compatible with memcached.\n\n### Usage\n\nStart from the command line:\n\n    $ nodecached\n\n### Options\n\nOptions are designed to be compatible with the original memcached, whenever possible.\n\n* `-p port`: Start server on the given port.\n* `-v`: Show notice messages.\n* `-vv`: Show info messages.\n* `-vvv`: Show debug messages.\n\n### Advanced Options\n\nThese options are specific for nodecached.\n\n* `--delay`: Enable Nagle's algorithm. Useful for measuring the cost of not setting the option `nodelay`.\n* `--fast`: Do not parse commands and return an error on all queries. Useful for measuring socket performance.\n\n### Server Commands\n\nnodecached accepts the following commands, based on [the original commands](https://github.com/memcached/memcached/blob/master/doc/protocol.txt):\n\n#### Storage\n\nThere are a few storage commands that start with a header like this:\n\n`<command> <key> <flags> <exptime> <bytes>\\r\\n`\n\n* `<command>` is `set`, `add`, `replace`, `append` or `prepend`.\n\n* `<key>` is a string that will identify the element.\n\n* `<flags>` is a 32-bit integer to store with the value.\n\n* `<exptime>` is expiration time in seconds.\n\n* `<bytes>` is the length of the data in bytes.\n\nAfterwards the server will expect the data block:\n\n`<data>\\r\\n`\n\nwith a length of `<bytes>`.\n\nThe server will respond with:\n\n* `STORED\\r\\n` to indicate success.\n\n* `NOT_STORED\\r\\n` to indicate failure.\n\n#### Retrieval\n\nThe command `get` has the following syntax:\n\n`get <key>\\r\\n`\n\nwhere `<key>` is a string that identifies an element.\n\n#### Deletion\n\nThe command to delete a record is:\n\n`delete <key>\\r\\n`\n\nwhere the `<key>` identifies the record.\nThe server will respond with:\n\n* `DELETED` to indicate that the record has been deleted.\n\n* `NOT_DELETED` if the value is not found.\n\n#### Statistics\n\nThe following command will retrieve a set of stats.\n\n`stats\\r\\n`\n\nThe stats include `pid`, `total_items` and a few others.\n\n#### Version\n\nThis simple command retrieves the version of nodecached.\n\n`version\\r\\n`\n\nThe response will be something like this:\n\n`VERSION <string>`\n\nThe version `<string>` will always start with `nodecached-`.\n\n### Caveats\n\nnodecached may strive to be compatible with memcached, but it is not equivalent.\nTo start with, it will probably consume more memory and be slower -- in my tests about three times as slow.\n\nOn the other hand, the absolute difference amounts to about 20 µs per request --\nthat is 20 millionths of a second.\nTypical network latencies are about 10 times bigger than that.\nSo the difference might not be an issue to you.\n\nIn any case, this is a preliminary version which is not even protocol-complete yet.\nPlease use with care.\n\nMissing commands are: `gets`, `cas`, `slabs [command]`, `stats [option]`.\nGeneral purpose statistics are by no means complete.\nThe option `noreply` is not supported yet.\nUDP and binary protocols are out of scope at the moment.\n\n## Memcached Client\n\nnodecached can be used as a client to a remote system.\nIt has been designed to be a drop-in replacement for\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n### Usage\n\nYou can integrate nodecached into your code as a client.\nIt is mostly compatible with node-memcached, so it should be a drop-in replacement.\nJust create a client with a location and options, and use it:\n\n    var Client = require('nodecached').Client;\n    var client = new Client('localhost:11311', {\n\t\ttimeout: 3000,\n\t});\n\n### API\n\nThe API has the following functions.\n\n#### Client(location, options, callback)\n\nCreate the client.\n* location: a string with the location `host:port`.\nCan also be an array of locations, or an object with {location: weight}.\nNote: weights are ignored right now.\n\n#### client.get(key, callback)\n\nRetrieve an object from the server by key, and send to the callback.\n* key: a string with the memcached key.\n* callback: function(error, value) to call with the retrieved value.\n\n#### client.set(key, value, lifetime, callback)\n\nStore an object in the server by key.\n* key: a string with the memcached key.\n* value: the object to store.\n* lifetime: max seconds to store.\n* callback: function(error, result) to call, true if stored.\n\n#### client.delete(key, callback)\n\nDelete an object from the server by key.\n* key: a string with the memcached key.\n* callback: function(error, result) to call, true if deleted, false otherwise.\n\n#### client.incr(key, value, callback)\n\nIncrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to add to the original.\n* callback: function(error, result) to call with the incremented value,\nor false if not found.\n\n#### client.decr(key, value, callback)\n\nDecrement a numeric value from the server by key.\n* key: a string with the memcached key.\n* value: the value to substract from the original.\n* callback: function(error, result) to call with the decremented value,\nor false if not found.\n\n### Options\n\nThe client accepts some options compatible with node-memcached.\n\n* `timeout`: ms to wait for a response from the server.\n\n## In-memory Cache\n\nnodecached can also work as an in-memory cache, again compatible with\n[node-memcached](https://github.com/3rd-Eden/node-memcached).\n\n## References\n\n* [protocol.txt](https://github.com/memcached/memcached/blob/master/doc/protocol.txt)\n* [node-memcached](https://github.com/3rd-Eden/node-memcached)\n* [jscached](https://github.com/monsur/jscache)\n* [memcached configuration](https://code.google.com/p/memcached/wiki/NewConfiguringServer)\n\n\n## License\n\nDistributed under the MIT license. See the file LICENSE for details.\n\n","maintainers":[{"name":"alexfernandez","email":"alexfernandeznpm@gmail.com"}],"time":{"modified":"2022-07-13T14:38:41.832Z","created":"2013-11-07T00:29:41.688Z","0.0.1":"2013-11-07T00:29:44.985Z","0.0.2":"2013-11-09T23:33:14.061Z","0.0.3":"2013-11-16T19:04:36.108Z","0.0.5":"2013-11-16T23:48:07.837Z","0.0.7":"2013-11-18T00:47:58.970Z","0.0.8":"2013-11-19T01:44:13.206Z","0.0.9":"2013-11-21T01:30:07.159Z","0.0.10":"2013-11-27T00:12:26.042Z","0.0.12":"2013-12-01T13:14:41.747Z","0.0.13":"2013-12-02T00:59:40.855Z","0.1.0":"2013-12-08T22:09:59.647Z","0.1.1":"2013-12-08T22:17:02.819Z","0.2.0":"2019-05-25T17:04:28.556Z"},"repository":{"type":"git","url":"git+https://github.com/alexfernandez/nodecached.git"},"homepage":"https://github.com/alexfernandez/nodecached","keywords":["memcached","npm","server","memcache","cache","caching","in-memory","database"],"contributors":[{"name":"Alex Fernández","email":"alexfernandeznpm@gmail.com"}],"bugs":{"url":"https://github.com/alexfernandez/nodecached/issues"},"license":"MIT","readmeFilename":"README.md"}