Iterable Interview Question

How would you design a cache?