RESTful API from handling redis cache