One.com interview question

Design a caching system ?