Refactoring

Moved durations from switch to a map
Added redis key prefix command line argument