Click here to Skip to main content
15,891,473 members
Articles / Web Development / ASP.NET

How to load Cache when value changes in database or file Changes

Rate me:
Please Sign up or sign in to vote.
1.33/5 (3 votes)
20 Sep 2012CPOL 3.6K  
As we know cache is a server side handling state management.How we update cache when some values changes in database.and page get loaded with new data in cache.Please give some solution an c# code also.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
20 Sep 2012Christiaan Rakowski
Interesting question, with several possible answers.A reason you would use a caching system is so that you don't have to poll the database on each page request. However sometimes data does change, and your cache will be outdated, and in some applications that can be quite a problem.If you...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions