Strava interview question

Write a cache mechanism class.