# HG changeset patch # User Yaroslav Zhuravlev # Date 1589889287 -3600 # Node ID bde7cd9a11737f3f64710e18dc24d3bcc5ebb2d8 # Parent 0e6bbd8138c4e1cfe996b01b09fdd7fd2ad8ed78 Added examples of state path to keyval. diff -r 0e6bbd8138c4 -r bde7cd9a1173 xml/en/docs/http/ngx_http_keyval_module.xml --- a/xml/en/docs/http/ngx_http_keyval_module.xml Fri May 15 16:22:43 2020 +0100 +++ b/xml/en/docs/http/ngx_http_keyval_module.xml Tue May 19 12:54:47 2020 +0100 @@ -9,7 +9,7 @@ + rev="10">
@@ -37,7 +37,7 @@ http { - keyval_zone zone=one:32k state=one.keyval; + keyval_zone zone=one:32k state=/var/lib/nginx/state/one.keyval; keyval $arg_text $text zone=one; ... server { @@ -103,6 +103,14 @@ and makes it persistent across nginx restarts. + +Examples: + +keyval_zone zone=one:32k state=/var/lib/nginx/state/one.keyval; # path for Linux +keyval_zone zone=one:32k state=/var/db/nginx/state/one.keyval; # path for FreeBSD + + + The optional timeout parameter (1.15.0) sets the time after which key-value pairs are removed from the zone. diff -r 0e6bbd8138c4 -r bde7cd9a1173 xml/en/docs/stream/ngx_stream_keyval_module.xml --- a/xml/en/docs/stream/ngx_stream_keyval_module.xml Fri May 15 16:22:43 2020 +0100 +++ b/xml/en/docs/stream/ngx_stream_keyval_module.xml Tue May 19 12:54:47 2020 +0100 @@ -9,7 +9,7 @@ + rev="9">
@@ -45,7 +45,7 @@ stream { - keyval_zone zone=one:32k state=one.keyval; + keyval_zone zone=one:32k state=/var/lib/nginx/state/one.keyval; keyval $ssl_server_name $name zone=one; server { @@ -107,6 +107,14 @@ and makes it persistent across nginx restarts. + +Examples: + +keyval_zone zone=one:32k state=/var/lib/nginx/state/one.keyval; # path for Linux +keyval_zone zone=one:32k state=/var/db/nginx/state/one.keyval; # path for FreeBSD + + + The optional timeout parameter (1.15.0) sets the time after which key-value pairs are removed from the zone.