Triplebyte interview question

Extend an existing database/cache solution to support additional requirements.