Delete the value of the provided namespace key.
if true this operation behaves like Memory.resetMemory with the key as an argument. Otherwise it merely removes the specified namespace.
Store the given value under the namespace key.
Namespaces are separated by a dot
Reset the given namespaces and all their children.
When called with no arguments this flushes the entire memory (i.e. deletes all keys).
Generated using TypeDoc
A simple namespaced data storage. You can access the memory directly using Memory.memory.
Namespaces
Namespaces aren't just "objects within objects". If you have the namespace
a.b.c
,a
does not containb
and likewiseb
doesn't containc
.You can set
a
to 5 anda.b
to 6.a
would still be 5.The only thing affected by namespaces is data removal. If you remove
a
it will also removea.b
anda.b.c
.The notable exception is Memory.forget with
forgetNamespace
false (the default). This only removes the specific namespace without affecting anything else.