Pregunta de entrevista de JFrog

How would you implement a cache?