NTT DATA interview question

Write a code to Cache in LWC.