allows setting the redis connection explicitly