How to clear particular Cache value in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago

Hi,

I  provide an option to clear purticular cache in a single page.But,all the caches used in the entire application shouild be cleared.why this should be  cleared? How to to resolve it?

You are viewing reply posted by: dharmendr one year ago.
Posted one year ago

Hi salini,

Use the below code to clear a particular cache instead of the entire cache value.

HttpContext.Current.Cache.Remove("Key")