added a redis facade and used it in the api