2

I found this blog post and would like to experiment with it more.. The issue is my environment is PHP and not Java. I've looked for how I can translate the code examples I would like to use into PHP but it doesn't look like there is much documentation on PHP and Bitmaps. Any help would be awesome!

Thanks!

http://blog.getspool.com/2011/11/29/fast-easy-realtime-metrics-using-redis-bitmaps/

1 Answer 1

1

Actually, you do not really need to handle the bitmaps in the PHP code, provided you use a recent Redis version (2.6), and a compliant PHP client library.

See the following Redis commands:

So you can count the bits directly in Redis rather than doing it in PHP.

Sign up to request clarification or add additional context in comments.

2 Comments

thanks! and for anyone looking for a snippet of this check out avad.hu/t/content/realtime-metrics-using-bitmaps-redis-and-php
@ChrisWhittle, thanks for the link. The same page has changed URL to avadhutp.github.io/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.