Lua scripts for smart metrics queries in Redis.