Flexible time-series stat tracking for redis