Store the cache data locally

Posted by Lu Lu on Stack Overflow See other posts from Stack Overflow or by Lu Lu
Published on 2010-06-15T10:31:53Z Indexed on 2010/06/15 10:32 UTC
Read the original article Hit count: 280

Filed under:
|

Hello, I develops a C# Winform application, it is a client and connect to web service to get data. The data returned by webservice is a DataTable. Client will display it on a DataGridView.

My problem is that: Client will take more time to get all data from server (web service is not local with client). So I must to use a thread to get data. This is my model:

Client create a thread to get data -> thread complete and send event to client -> client display data on datagridview on a form.

However, when user closes the form, user can open this form in another time, and client must get data again. This solution will cause the client slowly.

So, I think about a cached data:

Client <---get/add/edit/delete---> Cached Data ---get/add/edit/delete--->Server (web service)

Please give me some suggestions. Example: cached data should be developed in another application which is same host with client? Or cached data is running in client. Please give me some techniques to implement this solution.

If having any examples, please give me.

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about techniques