Mews interview question

How is server response memorization implemented in Apollo client and how would you implement it?