0.1.0 • Published 7 years ago
rside v0.1.0
rside 
An implementation of redis client
Rside is a redis client library written for node.js. All the commands that sent to the server are multibulk string. This library also exposes event from node.js socket event useful for listening network event, for example when the server close connection etc.
Commands Implemented
- PING
- GET
- SET
- HGET
- HSET
- AUTH
- etc...
See examples and test specs file for more information about commands that are already implemented.
The commands list is still not documented yet. If you are interested in helping and making documentation, take a look at CONTRIBUTING guidelines.
Install
Install rside from npm:
npm install --save rside
Example
Here is a simple example:
/**
* Dependencies
*/
const rside = require('rside');
/**
* Create new client
*/
const client = rside(6379, 'localhost');
/**
* Invoke commands
*/
client.PING((err, pong) => {
console.log(pong);
});
client.SET(['hello', 'world'], (err, ok) => {
console.log(ok);
client.GET(['hello'], (err, data) => {
console.log(data);
client.close();
});
});
Contribution
Read CONTRIBUTING to see contribution guidelines.
License
See LICENSE