Girish wrote:
>
Actually, I have to implement a content based website.
my requirements are to cache data by parameters(URL), each page can
have different cache time.
and i have to provide a control panel where site administrator can be
able to clear cache for the specific URL, complete page or whole
site.
or they can also able to change the cache time of a particular page.
If you are doing the website in ASP.Net, the Application cache will do a lot of
what you want.
You can add various objects, set caching time, and set dependencies on other
objects.
You clear objects by simply removing them from the cache.
Be aware, though, that caching is an optimization. Although it practice it
usually does what you want, in principle the cache can be reset at any time,
and does not guarantee that it will cache something for the time specified. The
model is that you write your code to see if something is in the cache, and use
it if is, else create it and add it. Also the application cache may or may not
carry across multiple instances of the web app, or application pooling, or what
have you.