Hi all, I have an API endpoint called updateValues running as a CRON job at /api/update/updateValues.js with the interval at 5 minute . Its only function is to perform certain mathematics and generate a bigint value.
I am trying to find a way to cache the value generated by the above mentioned API endpoint and serve it through another endpoint say /api/get/getLatest.js .
Does nextjs have a dedicated function for this very thing or I am supposed to use something like node-fetch?
Anything help, thanks a lot for your time : )