// Utilities private async ValueTask <HashEntry[]> LoadElementAsync(TreeElement element) { HashEntry[] result = await _database.HashGetAllAsync(element.PathInTreeNamespace()); element.LastStoreInfo = GetLastStoreInfo(result); return(result); }
private async ValueTask StoreTreeElementAsync(TreeElement element, HashEntry[] hashEntries, ElementStoreInfo lastStoreInfo) { await _database.HashSetAsync(element.PathInTreeNamespace(), hashEntries); element.LastStoreInfo = lastStoreInfo; }