node.js - Get Bitmap from Redis in binary -


i working on user activity feature in track activity of user everyday. thinking of using bitmap, users active on day set 1.

setbit users:2015:9:30 <userid> 1 

i don't want getbit each user. want retrieve entire value in binary can iterate through , find active or inactive users.

i know if approach correct , node-module use.

bit arrays in redis stored strings. entire array, regular , parse bytes result.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -