GeneratorConsumer: upsert through UpsertAsync
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5c55f9cb15
commit
e3fe3a32f6
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ foreach (var (type, value) in documents)
|
|||
using (var cache = new CultCache(registry))
|
||||
{
|
||||
cache.AddBackingStore(new SingleFileMessagePackBackingStore(path));
|
||||
cache.Upsert(type, value, new CultRecordKey("k"));
|
||||
cache.UpsertAsync(type, value, new CultRecordKey("k")).GetAwaiter().GetResult();
|
||||
cache.FlushAllBackingStores();
|
||||
}
|
||||
using var reopened = new CultCache(registry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue