Redis integration on API

Hi Firend,

What is the best area to store the api output in redis ? or can i edit the generated code itself ?

where should i edit the code and have anyone tried can share the code please.

Thanks