Basic analytics implemented with Redis, phpredis and SncRedis