]> git.kaiwu.me - njs.git/commit
Modules: fixed size() and keys() methods of a shared dictionary.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 31 Aug 2023 01:59:28 +0000 (18:59 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 31 Aug 2023 01:59:28 +0000 (18:59 -0700)
commit4a86e19000ecb36e9409b03abad2dd727714a0ca
tree96e8b0c6ca0497188fe0c65569533c84a6a54abf
parente64a3762a629c91f0e44742bc6f7948c0851e8a5
Modules: fixed size() and keys() methods of a shared dictionary.

Previously, these methods did not take into the account exprired
entries. The expired entries appear in js_shared_dict_zone when timeout
directive is specified as the expired elements are not removed at the
moment they become stale right away.

This closes #665 issue on Github.
nginx/ngx_js_shared_dict.c
nginx/t/js_shared_dict.t