Hacker News new | ask | show | jobs
by makmanalp 4999 days ago
Nothing specific about redis or new here. Of course if you can easily cache a pre-calculated value, that'll save you time and CPU.
1 comments

Well, to be fair, the cached counts are incremented by Redis through the incr command. So, no pre-calculation here. It can be interesting also to aggregate metrics of floats using the incrbyfloat command.