Class CachePublication

Assembly: redb.Core.dll

The caches publish committed state only (review after 4.0.0). A cache Set marks the graph shared, and a shared
instance does not keep what one transaction saw (owner decision 2026-09-15) - so a Set inside a transaction made
the writer's own loaded object forget its lazy references: an edit of root.Props.Next.Props followed by a
save of root.Props.Next saved a fresh reload, and every read of a list item's object was a query. A Set
inside a transaction now waits for its commit; until then the instance is the reader's own, and what a
rolled-back transaction loaded never reaches the cache.

public static class CachePublication

Inheritance

Object→CachePublication

Methods

AfterCommit(IRedbContext, Action)

Runs publish now, or once the transaction context takes part in has

public static void AfterCommit(IRedbContext context, Action publish)