How to test this locally? #443
-
Hi all, We're deploying a Next.js app to Azure App Services and want to make use of horizontal scaling. Thats why i'd like to use this package. Is it because of the fact that I don't run multiple instances locally? How can I verify my cachehandler is working correctly? I've turned on the ENV NEXT_PRIVATE_DEBUG_CACHE=1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@robfuncken hello! I'm so sorry it took so long to answer. Let's assume that version before 1.0.0 is obsolete, and we will discuss the latest version. And I must update the Next.js example to the latest version. Here are the required steps for local debugging:
In the console of your next server you should see something like this:
If that is not the case, make sure that you, the Redis client, have managed to establish the connection with the Redis server. I hope that will help you! |
Beta Was this translation helpful? Give feedback.
@robfuncken hello! I'm so sorry it took so long to answer.
Let's assume that version before 1.0.0 is obsolete, and we will discuss the latest version. And I must update the Next.js example to the latest version.
Here are the required steps for local debugging:
@neshca/cache-handler
and theredis
using your package manager.cache-handler.mjs
file near thenext.config.(m)js
file and paste there the code from the Redis Handler example.@neshca/cache-handler/redis-stack
to@neshca/cache-handler/redis-strings
if your are going to use Redis server prior to version 7.@neshca/cache-handler/redis-strings
…