Re: njs: how to define a global variable

2019-06-03 Thread Dmitry Volyntsev
On 29.05.2019 20:02, guy1976 wrote: hi is it possible to define a global variable that will be persist for different requests? Hi Guy, Currently it is not possible as all njs VM are short-lived (a VM per request). If performance is not a serious issue you can use FS API (see

njs: how to define a global variable

2019-05-29 Thread guy1976
hi is it possible to define a global variable that will be persist for different requests? thank you, Guy. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,284350,284350#msg-284350 ___ nginx mailing list nginx@nginx.org