Caching DataSet for lifetime of Webapp
-
I created a dataset with several tables, can I keep this in Cache for the lifetime of the Web Application, do I need a Web Service to do so? Would there be a way to automatically Save the changed or new records in the Cache Object To the Database? is Cache the only way to keep an object persistent throughout the entire web app and only on the server side? Can someone point me in the right direction? thanks!
-
I created a dataset with several tables, can I keep this in Cache for the lifetime of the Web Application, do I need a Web Service to do so? Would there be a way to automatically Save the changed or new records in the Cache Object To the Database? is Cache the only way to keep an object persistent throughout the entire web app and only on the server side? Can someone point me in the right direction? thanks!
If this is something that the whole application is going to use that you should probably put it in the Application object. The application object will not expire like the cache will. You can retrieve the dataset from the application object any time you want do whatever you need to do with it and then put it back into the application object. Hope that helps. Ben