util_memoize_seed (public)

 util_memoize_seed script value [ max_age ]

Defined in packages/acs-tcl/tcl/memoize-procs-naviserver.tcl

Pretend util_memoize was called with script and it returned value. Cache value, replacing any previous cache entry for script.

If clustering is enabled, this command flushes script's value from the caches on all servers in the cluster before storing the new value. The new value is only stored in the local cache.

Parameters:
script (required)
A Tcl script that presumably would return value.
value (required)
The value to cache for script.
max_age (optional)
Not used.

Testcases:
No testcase defined.
Source code:
    util_memoize_flush $script
    ns_cache_eval -force util_memoize $script [list set _ $value]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: