check redis before http request