0.2.1 • Published 10 years ago

redis-histogram v0.2.1

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

redis-histogram

Redis histogram for node.js

Installation

$ npm install redis-histogram

Example

var Histogram = require('..');
var redis = require('redis');

var hist = new Histogram({
  client: redis.createClient(),
  bins: 10
});

var n = 1000;

while (n--) {
  hist.add(Math.random() * 50 | 0);
}

hist.load(function(err, bins){
  console.log(bins)
});

License

MIT

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

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