ClearAsync Method ClearAsync() Asynchronously clears all entries in the collection. Declaration Task ClearAsync() Returns Task A task that represents the asynchronous operation.