setup redis. outline the api