I want to load some data from my sql database to the RAM and to be available to be used across all of my forms in C# winform app. I tried REDIS but the problem with it is I coudln't save my object type lists or user defined types in the database. For example,
on app launch, I load the data from sql to the RAM
during the launch, the data are accessible across all the forms
when application is closing, the data saved back to the sql database and updates changed data if any
Is this possible?
What I’m doing already is as follows, on app launch I load all the data from database to an XML file, then I get the data that I want to be used in the forms and I reflect any change to the data in the XML file immediatly. When application is closing, I update the data in sql with what I have in the xml file.