How to get cached db request from server action?
Unanswered
Southern rough shrimp posted this in #help-forum
Southern rough shrimpOP
Hi, I have few server actions where I query my db to get all users, or all categories in the app.
is it possible to cache those requests? or do I have to use a service like redis?
is it possible to cache those requests? or do I have to use a service like redis?
2 Replies
@Southern rough shrimp Hi, I have few server actions where I query my db to get all users, or all categories in the app.
is it possible to cache those requests? or do I have to use a service like redis?
you can cache your external db with the use of unstable_cache. Keep in mind to not use it in production, because it is unstable right now. But for me: I never had issues with that
@Southern rough shrimp solved?