allow redis connection to be configure directly in cache

fixes #1316