Properly define Cache() method