Skip to main content

Module namespace

Module namespace 

Source
Expand description

Process-scoped key namespaces.

namespace set binds a prefix to the calling process. Later put/get/del (and tick lock/unlock) from that process — or a descendant — prefix keys with it until the process exits or a new namespace is set.

--namespace / $UNIFIER_NAMESPACE overrides the bound prefix for one invocation. A key starting with / is absolute (no prefix). Empty $UNIFIER_NAMESPACE disables the bound prefix for that invocation.

Functions§

apply_prefix
Prefix key with ns, unless key is absolute (/...).
clear
Remove this process’s namespace binding (ancestors are unchanged).
effective
Effective namespace: explicit override, else nearest living ancestor binding.
owner_pid
PID whose namespace this unifier invocation should bind or look up.
qualify_key
Apply the effective namespace to a key path.
reap_dead
Drop bindings whose process is gone.
set
Bind name as the namespace for the calling process.
validate_namespace