πŸ”— Lua scripting with Redis for generic analytics

TL:DR; A key per day per action, loop a day-range using scan, predefine calculations and run them against each keys.

🌎 http://danoyoung.blogspot.fr/2015/12/lua-scripting-with-redis.html