Amazon Interview Question

How to use cache api