redis backed analytics for node
Probabilistic counters for node.js, backed by redis.
Note: not ready for production use.
Currently the only structure implemented is a linear counter. It hashes and maps input values to an internal linear identifier via
var bitcrunch = require'bitcrunch';var won = bitcrunch'won';var lost = bitcrunch'lost';// email@example.comfirstname.lastname@example.orgemail@example.com';// firstname.lastname@example.orgemail@example.com';// won AND lostwonandlostcountconsole.log'%s won and lost' total;;// won OR lostwonorlostcountconsole.log'%s won or lost' total;;
var bitcrunch = require'bitcrunch';var likes = bitcrunch'likes'add'js'add'lua'add'redis';likesincludes'js'console.log'result = %s' result;;