Amazon interview question

Explain how caching works on different levels.