]> git.kaiwu.me - njs.git/commit
Modules: added state file for the shared dictionary.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 15 May 2025 01:16:15 +0000 (18:16 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 22 May 2025 23:54:29 +0000 (16:54 -0700)
commiteca03622a5d77d73ef7d89610c906dad5628c37e
tree746bbfbb6eb18c78df154f501defe8c98fd5b6a5
parentbc3b91cda9497717ebd1c150f53e4a37e88b3958
Modules: added state file for the shared dictionary.

A new optional state parameter is added for js_shared_dict_zone
directive. state parameter specifies a file that keeps the current state
of the shared dict in the JSON format and makes it persistent
across nginx restarts.

This closes #709 feature request on Github.
nginx/ngx_http_js_module.c
nginx/ngx_js.h
nginx/ngx_js_shared_dict.c
nginx/ngx_js_shared_dict.h
nginx/ngx_stream_js_module.c
nginx/t/js_shared_dict_state.t [new file with mode: 0644]
nginx/t/stream_js_shared_dict_state.t [new file with mode: 0644]