0.1.1 • Published 10 years ago

redis-sharder v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

node-redis-sharder

A simple sharder for redis, built upon the node-redis library

Usage

Example

var config = {
  servers: [
    {host: '127.0.0.1', port: 6379, weight: 100},
    {host: '127.0.0.1', port: 6379, weight: 100}
  ],
  options: {},
  error_handler: function (err, server) {
  	// Handle connection errors
  }
};
var redis = require('./../index.js')(config);

redis.hset([KEY, FIELD, VALUE], function (err, result) {
	// Use result
});

Test

redis-server npm install npm test

License

MIT

0.1.1

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago