New Message on dotNET User Group Hyd

How to overcome Cache Problem?

Reply
  Reply to Sender   Recommend Message 4 in Discussion
From: Anand Kumar

Hi chirnjeevi,

The ideal solution is have a class that has members like UserUniqueId ( may be the seassion ID) and the data what you want to store , cache it when ever the server get responses from clients with this unique id , while display the data first check cache for availability of data , if it is not present pulls it from DB and cache it and returns the cache data to the user , if you need to update the data first update the cache and then update the DB so you can maintain consistency of data , set the cache expiry time through config setting .You no need to bother of cache removable ,ASP.NET automatically takes care. I also suggest consume the Caching Application Block and customize it according your requirements (you can select Memory Mapped Files , SQL database , Singleton object caching mechanism).

Cheers
Anand
ping me if you have furthere

View other groups in this category.

Click here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to