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

53 views
Skip to first unread message

Peng Liu

unread,
Sep 18, 2016, 1:47:37 AM9/18/16
to 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

unread,
Sep 18, 2016, 9:44:52 PM9/18/16
to 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.

Reply all
Reply to author
Forward
0 new messages