redis-sharder
Super simple redis sharding.
Last updated 6 years ago by ptte .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install redis-sharder 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.1                                ...           latest (6 years ago)

6 Versions

  • 0.1.1                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 8
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |