CacheBase<T>.ClearAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ClearAsync() |
Clears all files in the cache |
ClearAsync(TimeSpan) |
Clears file if it has expired |
ClearAsync()
Clears all files in the cache
public System.Threading.Tasks.Task ClearAsync ();
member this.ClearAsync : unit -> System.Threading.Tasks.Task
Public Function ClearAsync () As Task
Returns
awaitable task
Applies to
ClearAsync(TimeSpan)
Clears file if it has expired
public System.Threading.Tasks.Task ClearAsync (TimeSpan duration);
member this.ClearAsync : TimeSpan -> System.Threading.Tasks.Task
Public Function ClearAsync (duration As TimeSpan) As Task
Parameters
- duration
- TimeSpan
timespan to compute whether file has expired or not
Returns
awaitable task