Is the content of nginx.shared.DICT kept when nginx is reloaded?

53 visualizzazioni
Passa al primo messaggio da leggere

Peng Liu

da leggere,
18 set 2016, 01:47:3718/09/16
a openresty-en
Hi,

I use nginx.shared.DICT to store some session data. When nginx is reloaded, would the content of these DICT be kept or be emptied?

Thanks
Liu Peng

Ming

da leggere,
18 set 2016, 21:44:5218/09/16
a openresty-en
quote from lua-nginx-module document:
The shared dictionary will retain its contents through a server config reload (either by sending the HUP signal to the Nginx process or by using the -s reload command-line option).

So, yes, the content in shared.DICT will be kept when nginx reloaded. And you can make a simple test for this.

--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi