Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Caching a DataSet in a Business Object
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00845755
Message ID:
00845848
Views:
14
You can look into the Caching Application Microsoft has published. This is a generic implementation that can be used in the middle tier and in WinForm apps.

Caching can be a huge win if you do it correctly, and I've been thinking alot (but not doing it) about how to best implement it in my middle tier. Currently I have all of my lists in Web apps cached and this works really well and has eliminated backend data access on a quarter of the app to nothing which results in significant performance gains...

FWIW, I'm not aware that you can't instantiate a Cache object of your own... I think you can, but only one instance can exist per AppDomain which means the model would be different between WinForms and Web Apps as Web apps automatically provide an instance on the HttpContext object.


+++ Rick ---



>Never mind. It just dawned on me that the business object couldn't be used in a Windows Forms project if I was trying to do Web Forms caching in the business object.
>
>>Is it possible to cache data in a method of a business object in an ASP.NET application. I am trying to use the Cache object in a method of one of my business object, but I am getting a syntax error. When I try to build the project, VS.NET 2003 doesn't recognize "Cache". I tried adding:
>>
>>using System.Web.Caching
>>
>>but VS.NET doesn't recognize that namespace. Can I only use the Cache object in an aspx file?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform