Added a limit to the number of logs saved in redis

- Added a fixed interval to save the data on redis
- Removed the IP from the dictionary key
- Changed the database number to 1
- Save the average bandwidth during the interval used