ns_runonce - Run Tcl script only once
This command ensures that the passed-in script will be executed only once. In other words, when ns_runonce is executed multiple times with the same script, later invocations have no effect. The command is typically used in situations, where resources are allocated. The command requires an executing server, i.e., it can't be used in the configuration file.
-global If specified, the unique execution refers to all defined servers, otherwise, the execution will be only once per server.
script Tcl script to be executed
ns_runonce { ns_cache_create mycache 0 }
ns_atsignal, ns_atstartup, nsd