Hi,
i'd like to store some values persistently in the global context. In my function node I have something like this:
var values = global.get('Status', "persistStore") || new Map();
values.forEach((value, key, map) =>
{
// do some stuff
});
global.set('Status', values, "persistStore");
The following files always looks like this even though I know that something is in the values map as it is displayed correctly.
pi@raspberrypi:~ $ cat .node-red/context/global/global.json
{
"Status": {}
}
In my settings.js I have
// persistent storage
contextStorage: {
default : {module: "memory"},
persistStore: {module: "localfilesystem"}
}
and when starting there are no complaints and both storages are accepted like this.
Is it not possible to store the map as is?
Thanks,
Markus