util_memoize_cached_p (public)
util_memoize_cached_p script [ max_age ]
Defined in packages/acs-tcl/tcl/memoize-procs-naviserver.tcl
Check whether script's value has been cached, and whether it was cached no more than max_age seconds ago.
- Parameters:
- script (required)
- A Tcl script.
- max_age (optional)
- Maximum age of cached value in seconds.
- Returns:
- Boolean value.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- util_memoize_cache, util_memoize_cache_script, util_memoize_cache_flush
Source code: if {$max_age ne ""} { ns_log warning "util_memoize_cached_p: ignore max_age $max_age for $script" } return [ns_cache_get util_memoize $script .]XQL Not present: Generic, PostgreSQL, Oracle