Alternera.Resource.Changes.NotifyHost (alternera_resource_sdk v0.9.0)

Copy Markdown View Source

Tells the host that a record changed, once its transaction has committed, so the proxy's lookup cache drops it on every node (Alternera.Resource.Host.changed/3). Only a resource with cache on carries it (Alternera.Resource.Transformers.AddCacheChange).

The key is the record's lookup key value, or its primary key when the resource has none. An update that changes the lookup key reports the old value as well as the new one, so a lookup by the old key no longer finds the record. A failed write reports nothing.