JFrog Interview Question

How would you implement a cache?