memcache
memcache copied to clipboard
Node.js memcached client with the most efficient ASCII protocol parser
memcache
NodeJS memcached client with the most efficient ASCII protocol parser.
Features
- Very efficient memcached ASCII protocol parser by using only NodeJS Buffer APIs.
- Optional compression for the data before sending to memcached
- Auto reconnects when there's network error or timeout
- Support sending arbitrary commands. Read up on the protocol doc here.
- Support storing
string,numeric, andJSONvalues - APIs Support callback or Promise
- Support fire and forget requests
- Support multiple connections
- Support TLS connections
Packages
This repo uses lerna to manage multiple packages.
- memcache-client -
The primary package which is the memcached client.
- memcache-parser -
A very efficient memcached ASCII protocol parser.
- memcached-njs -
A working memcached server implemented in NodeJS for tests.
Development environment installation
- Clone this repo
- run
nvm use - run
npm ci - run
npm run bootstrap - optional: just to make sure everything is fine run
npm run buildand check if there's no error using that command - Testing: run
npm test
Publishing notes
- Recommended publish flow is to publish the modules individually using
npm publish, can be improved to use lerna in the future
Other Implementations
License
Apache-2.0 © Joel Chen