Amazon Interview Question

How would you recommend to a developer to adjust their code in order to handle database caching?