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,adoes not containband likewisebdoesn't containc.You can set
ato 5 anda.bto 6.awould still be 5.The only thing affected by namespaces is data removal. If you remove
ait will also removea.banda.b.c.The notable exception is Memory.forget with
forgetNamespacefalse (the default). This only removes the specific namespace without affecting anything else.