bitcrunch
Redis analytics for node.js.
Note: not ready for production use.
Bitmaps
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
Basic logic
var bitcrunch = ; var won = ;var lost = ; // winners won; // losers lost; // won AND lost won; // won OR lost won;
Membership
var bitcrunch = ; var likes = ; likes;
todo
- command-queue / promises for chaining (that works).
- complex logic (and/or/and), kinda requires the promises.
- do we really need to hash values?.
- NOT.
- XOR.
attribution
- fast-easy-realtime-metrics-using-redis-bitmaps
- bitmapist
- [crashlytics-on-redis-analytics](http://www.slideshare.net/crashlytics/crashlytics-on-
License
MIT