Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Mar 27, 2021

Keep align with the usage of JsonStorage that use an instance holding the data to load and save instead of creating a new one every time. It uses dynamic to fit the generic type, but I also see someone use a generic type with static class to achieve similar result, but that will change quite significantly.
#388

@taooceros taooceros force-pushed the PluginJsonStorageSingleInstance branch from ccac0c0 to 6fe83d8 Compare March 27, 2021 09:58
@jjw24
Copy link
Member

jjw24 commented Mar 31, 2021

@taooceros what would be a scenario where you would use BackupJsonStorage?

@jjw24 jjw24 added the enhancement New feature or request label Mar 31, 2021
@jjw24 jjw24 merged commit b359d70 into dev Mar 31, 2021
@jjw24 jjw24 deleted the PluginJsonStorageSingleInstance branch March 31, 2021 20:21
@taooceros
Copy link
Member Author

@taooceros what would be a scenario where you would use BackupJsonStorage?

I don't know, but that is held in the JsonStroage class, so I add it as well. I guess if some plugin would like to use JsonStorage to store information that may change through usage, so backing up sometimes will make a record?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants