Glassbox Interview Question

Explain how to implement a generic cache?