PropertyLoop interview question

How would you implement caching for the api responses on the client side?