CultCache: [CultIndex] is unique at commit and load; [CultRole] names a selection role; replicas apply a commit's changes as one batch (#90)
Some checks failed
CultMesh QUIC native / Build win32-x64 (push) Has been skipped
CultMesh QUIC native / Build linux-x64 (push) Has been skipped
CultMesh QUIC native / Release native binaries (push) Has been skipped
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (push) Failing after 20m15s
CultMesh QUIC native / Verify committed binaries match SHA256SUMS (push) Successful in 48s

This commit is contained in:
Libby 2026-11-11 03:48:08 +00:00
commit 7760219b7c
32 changed files with 1686 additions and 349 deletions

View file

@ -321,15 +321,16 @@ var bySchema = documents.DocumentBySchema("gamecult.aetheria.station_refit.v1");
Typed collections use the same one-call style:
```csharp
var allies = CultMesh.CollectionByIndex<PlayerShipDocument>(
// A [CultIndex] value is unique within its type, so the handle holds at most one record.
var flagship = CultMesh.CollectionByIndex<PlayerShipDocument>(
node,
"Faction",
"au");
"CallSign",
"au-1");
var currentAllies = await allies.LatestAsync();
using var changes = allies.WatchChanges(change => UpdateRoster(change));
var currentFlagship = await flagship.LatestAsync();
using var changes = flagship.WatchChanges(change => UpdateRoster(change));
var collections = CultMesh.Collections(allies);
var collections = CultMesh.Collections(flagship);
var roster = await collections.LatestAsync<PlayerShipDocument>();
using var rosterChanges = collections.WatchChanges<PlayerShipDocument>(RenderRoster);
```