How to cache a global data?
For example, I want to fetch bitcoin price rate from some website and save it for 5 minutes in a worker environment for every request, how do I do cache it? I'm new to this
1 Reply
Best is to store it in KV (https://developers.cloudflare.com/kv/)
But you could cache API as well - https://developers.cloudflare.com/workers/runtime-apis/cache/