Configures redis for session cache.