fix a typo in cache method