NCache 4.6 - Online Documentation

Clearing the Cache Asynchronously

 
To clear cache completely in background, ClearAsync method needs to be called in NCache.
 
      To utilize the API, include the following namespace in your application: Alachisoft.NCache.Web.Caching.
 
try
{
              cache.ClearAsync(null);
}
catch (Exception ex)
{
// handle exception
}
 
 
 
See Also