ioBroker.js-controller
ioBroker.js-controller copied to clipboard
refactor: separating the storage from the dataset handling
refactoring and separating the storage from the dataset handling. Proposal:
- capsule the dataset handling with a class that is compatible to the native Map
- handle persistence (regular save, backup) on write accesses inside that new dataset class and remove it from the FileDB server class
- make the InMemFileDB able to handle a different dataset implementation which should be configurable via the settings
- Convert PR ioBroker/db#26 into a different dataset implementation.