Alternatives for Redis Cache Handling in Amplify with Next.js (v14.2) SSG & ISR
Unanswered
Amal posted this in #help-forum
AmalOP
Hey everyone! 👋
We're using Next.js 14.2 and hosting it on AWS Amplify, leveraging SSG and ISR for static site generation. Naturally, we need full control over the cache, but Amplify doesn't directly support Redis to manage cache handling.
Has anyone encountered this issue? Are there any alternative ways or solutions to achieve efficient cache control in Amplify without Redis? !
We're using Next.js 14.2 and hosting it on AWS Amplify, leveraging SSG and ISR for static site generation. Naturally, we need full control over the cache, but Amplify doesn't directly support Redis to manage cache handling.
Has anyone encountered this issue? Are there any alternative ways or solutions to achieve efficient cache control in Amplify without Redis? !
2 Replies
Transvaal lion
Did you consider using ElastiCache with https://github.com/vercel/next.js/blob/canary/examples/cache-handler-redis/cache-handler.js? / https://caching-tools.github.io/next-shared-cache/installation
AmalOP
Thanks for the suggestion! I did look into it, but I’m not familiar with setting up ElastiCache as a substitute for Redis. Could you provide some guidance on how to configure ElastiCache with Amplify for caching in Next.js? Any specific steps or examples would be really helpful!