adds the method to the cache recipe