Node_Red version 3.0.2
Hi all, I'm trying to implement a custom context store. I have read the documentation however I'm still unsure how to edit the settings.js file to create these stores, and I have the following question
- Can I create multiple context stores e.g. Store_1 (in memory), Store_2 (in memory), Store_3 (on disk)?
- How do I implement the "require" statement in the flows?
Can someone point me in the right direction so I can find an example that shows an example with multiple context stores implemented in the settings.js file?
Here is the example from the help files. I'm also unsure where to place the "required" statement in my flow.
The module
property identifies the context store plugin to use. It can either be the name of built-in module (currently either memory
or localfilesystem
), or it should be a module that has been loaded using require
.
contextStorage: {
default: {
module:"memory",
},
custom: {
module:require("my-custom-store")
}
}
Thank you for your help.