CacheBase<T>.RemoveExpiredAsync(Nullable<TimeSpan>) 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.
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
Optional timespan to compute whether file has expired or not. If no value is supplied, CacheDuration is used.
Returns
awaitable task