# `Alternera.Resource.Changes.NotifyHost`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_resource_sdk/lib/alternera/resource/changes/notify_host.ex#L1)

Tells the host that a record changed, once its transaction has committed,
so the proxy's lookup cache drops it on every node
(`c: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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
