node-aggregator
1.2.2 • Public • Published Data aggregation tool
usefull to manage cache and keed updated
Example
Basic
var sum = new Aggregator(function(new_value, memo, callback){
callback(new_value + memo);
}, 0);
sum.add(1);
console.log(sum.value());
sum.add(2);
console.log(sum.value());
/node-aggregator/
//
Package Sidebar
Install
Weekly Downloads