Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
3 replies
Del

Caching Data for a trpc endpoint

I need to hit an external API every few minutes to update my local data

Call this BigDataList


I have a trpc endpoint

- GetOne

GetOne edits and reformats a single item of BigDataList and returns it

How would I go about caching BigDataList so it only updates every few minutes?
Was this page helpful?