]> git.kaiwu.me - njs.git/commit
Modules: added ttl() method to shared dictionaries.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 12 Mar 2026 23:48:14 +0000 (16:48 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 18 Mar 2026 01:14:53 +0000 (18:14 -0700)
commitcf376bf047d658fb5a95ec4b4ae57550e6f84843
treef5ded73d1a464c6aaf63b540d0502cf81b6e3ca2
parente496636ec3ccab2194511cef157141301a399049
Modules: added ttl() method to shared dictionaries.

The method returns the remaining time-to-live in milliseconds
for a given key, or undefined if the key does not exist or has
expired.  Throws TypeError if the dictionary was declared without
the timeout parameter.
nginx/ngx_js_shared_dict.c
nginx/t/js_shared_dict.t