Edit

Share via


CacheBase<T>.RemoveExpiredAsync(Nullable<TimeSpan>) Method

Definition

Removes cached files that have expired

public System.Threading.Tasks.Task RemoveExpiredAsync (TimeSpan? duration = default);
member this.RemoveExpiredAsync : Nullable<TimeSpan> -> System.Threading.Tasks.Task
Public Function RemoveExpiredAsync (Optional duration As Nullable(Of TimeSpan) = Nothing) As Task

Parameters

duration
Nullable<TimeSpan>

Optional timespan to compute whether file has expired or not. If no value is supplied, CacheDuration is used.

Returns

awaitable task

Applies to