Glassbox interview question

Explain how to implement a generic cache?