Design:Shared Global Context
TJKoury edited this page Nov 2, 2016
·
1 revision
- Enable persistence of context across restarts reference
- Enable shared context when multiple instances of node-red are running the same flows reference
- The model should follow that of the existing storage plugin mechanism. reference
- Current plugin model interface is specifically designed with getters/setters for specific data types (flows, settings, sessions).
- The global context is dynamically typed, with the 'interface' being that of a context with dynamic getter / setter functions accepting keys.
- Create an inherited interface with dynamic getter / setters, extend prototype to create storageModuleInterface.
- Modify the storageModuleInterface to include dynamic getter / setters.