Design in-memory DB with TTL and backup | Circle Interview Question