Is it lightweight to create unstable_cache?
Unanswered
Ladder-backed Woodpecker posted this in #help-forum
Ladder-backed WoodpeckerOP
In my code, I have a raw function to access the prisma schema, and a cached function and return the cached result of the raw function.
My question is, inside my cache function, I call const cached_fn = unstable_cache(...) to create a function, and then cached_fn(postId) to access the data. Will it be slow? Should I keep cached_fn somewhere in the code, and call it directly instead?
My question is, inside my cache function, I call const cached_fn = unstable_cache(...) to create a function, and then cached_fn(postId) to access the data. Will it be slow? Should I keep cached_fn somewhere in the code, and call it directly instead?