Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

Browse by Tags

All Tags » .NET » Caching » C#
  • Extending the ASP.NET Cache Object: Cache.Clear()

    The built-in Cache object in ASP.NET does not support a Clear() method.  This method would be useful if you ever just wanted to invalidate all cache entries and start fresh.  In a utility object I'm working on, tentatively called SuperCache, I've implemented a Clear method using the following code:   /// ...
    Posted to Steven Smith (Weblog) by ssmith on November 14, 2005