Hello All,
I have a requirement to maintain data in both memory and file based context(if not present in memory copy from file based context; if not present in file copy from memory based context).
Generally the context mapping in settings.js looks like the following;
contextStorage: {
storeInFile: { module: "localfilesystem"},
default : { module: "memory" }
}
To store data to file based context I need to provide flow.set(data, "storeInFile"), but in another node red environment the instead of "storeInFile" someone can use "file" or "fileBased" etc.
Since I have my "default" key mapped to memory, Is there any way I can use file based storage without mentioning the key name("storeInFile", "file" or "fileBased")?
Thanks in advance