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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -