Implement your own server using the redis protocol
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
README.md
package.json
simple_server.js

README.md

Node Redis protocol

Implement your own server using the redis protocol.

Build a fake redis or a redis slave.

Install

npm install

Test

npm test

Use cases

Fake redis server

var redisd = require('redis-protocol');
var server = redisd.createServer(function(command) {
      console.log('query', command);
      this.encode(['pim', 'pam']);// the answer
});
server.listen(6379, function() {
    console.log('fake redis started');
});

This code is available at project root level.

You can talk to it with any redis tools. Try redis-cli.

Continous integration

Build Status

Licence

MIT