can I use Redis as a cache layer for Next.JS hosted on Docker?
Unanswered
American black bear posted this in #help-forum
American black bearOP
Hey, I have a question regarding the next.js cache handler for ISR. I have a Next.JS app hosted on docker, on multiple instances, I think 4 or 5, and for now, everything is rendered on-demand, server-side, but I want to add a cache layer all of my instances.
Can I use something like Redis to store cached pages / cached data / cached sitemaps, etc, and to revalidate them across all my instances?
Also, if I Had one single instance, what approach would you implement?
Can I use something like Redis to store cached pages / cached data / cached sitemaps, etc, and to revalidate them across all my instances?
Also, if I Had one single instance, what approach would you implement?
3 Replies
This will make nextjs store all of its cache data in redis instead of the usual filesystem
although use cache isn't supported so yea