Redis Client
Hi,
Is there any way to use Redis client within njs? I need to get/set entries on the Redis server. I know that there is a Lua Redis client, however, I cannot use the Lua module in my Nginx image.
Hi @omegion,
We do not have native redis client or TCP API yet. We plan to do both in the future.
Thanks for your answer @xeioex! Do you know any alternative way to combine both for Nginx?
@omegion
Combine both lua and njs? There are many configuration which do that.But usually they do not interact.
One way for both lua and njs interact is to use nginx variables. For example using js_var which create a writable nginx variable. You can write to it from lua and read from njs or vice versa. Not tested though.
really need this feature
Thanks for your answer @xeioex! Do you know any alternative way to combine both for Nginx?
You may want to take a look on redis2 third-party module.