/// <summary> /// Commits all unsaved changes in the spatial and non-spatial stores. Each store is committed asynchronously. /// </summary> public override bool Commit(out int numDeleted, out int numUpdated, out long numBytesWritten) { var commitOk = _useAsyncTasksForStorageProxyIgniteTransactionalCommits ? CommitAsync(out numDeleted, out numUpdated, out numBytesWritten) : CommitSync(out numDeleted, out numUpdated, out numBytesWritten); return(commitOk && (ImmutableProxy?.Commit() ?? true)); }
/// <summary> /// Clears all changes in the spatial and non spatial stores /// </summary> public override void Clear() { void LocalClear(IStorageProxyCacheCommit committer) { try { committer?.Clear(); } catch { _log.LogError($"Exception thrown clearing changes for cache {committer?.Name}"); throw; } } CommittableCaches.ForEach(LocalClear); ImmutableProxy?.Clear(); }