Table of Contents

Method ExpireCacheAsync

Namespace
PowerSync.Common.Attachments
Assembly
PowerSync.Common.dll

ExpireCacheAsync()

Removes archived attachments that exceed ArchivedCacheLimit, along with their local files. Archived rows up to the limit are kept as a cache so that briefly re-referenced attachments can be restored without a re-download.

public Task ExpireCacheAsync()

Returns

Task

A task that completes when no archived rows remain past the cache limit.