Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to implement caching
Message
From
21/06/2007 13:27:07
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
How to implement caching
Miscellaneous
Thread ID:
01234794
Message ID:
01234794
Views:
66
I'm looking a way to create fast C# Winforms database application.

I need that all data read from database is stored in memory cache.
Every time when object is required cache should be examined first.
Database access should be performed only if object does not exist in cache.

I looked into sample business objects and found code like

public CustomerEntity GetCustomerByID(string customerID) {
return this.GetEntity("CustomersSelectByPK",
this.CreateParameter("@CustomerID", customerID));
}

In this case every retrieval of customer causes database access over internet which makes application very slow.

Doc does not contain any information how to implement caching.

Any idea how to implement caching so that when customerID was previously fetched from database it is not fetched again?
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform