Refactor getResponseCache to getCache