Tencent interview question

How would you design a cache system