store statistics in redis