A cache is a form of computer memory that temporarily stores frequently or recently used data for rapid access.