Nerfing Powerful Megalomaniacs

    redis-sharder

    0.1.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i redis-sharder

    DownloadsWeekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • ptte