Edit

Share via


CacheBase<T>.ClearAsync Method

Definition

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

Applies to