A cache is a high-speed data storage layer that temporarily stores frequently accessed or recently used data to enhance data retrieval performance.