---
title: "updateCacheNode(_:from:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsatomicstore/updatecachenode(_:from:)"
---

# updateCacheNode(_:from:)

Updates the given cache node using the values in a given managed object.

## Declaration

```swift
func updateCacheNode(_ node: NSAtomicStoreCacheNode, from managedObject: NSManagedObject)
```

## Parameters

- `node`: The cache node to update.
- `managedObject`: The managed object with which to update node.

## Discussion

Discussion This method is invoked by the framework after a save operation on a managed object context, once for each updated NSManagedObject instance. You override this method in a subclass to take the information from managedObject and update node. Special Considerations You must override this method.

## See Also

### Updating Cache Nodes

- [newCacheNode(for:)](coredata/nsatomicstore/newcachenode(for:).md)
- [newReferenceObject(for:)](coredata/nsatomicstore/newreferenceobject(for:).md)
- [willRemoveCacheNodes(_:)](coredata/nsatomicstore/willremovecachenodes(_:).md)
