Redis cache improvements

Added a timeout to the cache items, and reading the server name from the
configuration file