redis backed analytics for node
Redis analytics for node.js.
Note: not ready for production use.
Hashes and maps input values to an internal linear identifier via redis-identity. You can then ask the bitmap various questions ranging some simple membership to more complex bitwise operations.
Inspired by: fast-easy-realtime-metrics-using-redis-bitmaps
var bitcrunch = require'bitcrunch';var won = bitcrunch'won';var lost = bitcrunch'lost';// firstname.lastname@example.orgemail@example.comfirstname.lastname@example.org';// email@example.comfirstname.lastname@example.org';// 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;;