C# write set: qualify MintStoredAt, and pin the variant write into a plain store another writer changed

ebd66e6f and cc8604ae do not build: the re-mint named MintStoredAt without its class.
Two tests pin the staleness rule for a write that would add a variant to a plain store.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-03 05:12:38 +02:00
commit 45d6866d31
2 changed files with 46 additions and 1 deletions

View file

@ -3925,7 +3925,7 @@ namespace GameCult.Caching
foreach (var staged in upserts)
{
if (replaced.TryGetValue(staged.Record.Key, out var durableAt) && !StoredLater(staged.Record.StoredAt, durableAt))
staged.Record.StoredAt = MintStoredAt(durableAt);
staged.Record.StoredAt = CultCache.MintStoredAt(durableAt);
}
var written = upserts.Select(staged => staged.Record.Key).ToHashSet(StringComparer.Ordinal);