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

Definition

Removes cached files that have expired

C#
public System.Threading.Tasks.Task RemoveExpiredAsync (TimeSpan? duration = default);

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

Producto Versiones
Windows Community Toolkit 6.1.1, 7.0.0, 7.1.0