---
title: save()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nsatomicstore/save()
---

# save()

Saves the cache nodes.

## Declaration

```swift
func save() throws
```

## Discussion

Discussion You override this method to make persistent the necessary information from the cache nodes to the URL specified for the receiver. Special Considerations You must override this method.

## See Also

### Related Documentation

- [updateCacheNode(_:from:)](coredata/nsatomicstore/updatecachenode(_:from:).md)
- [willRemoveCacheNodes(_:)](coredata/nsatomicstore/willremovecachenodes(_:).md)
- [newReferenceObject(for:)](coredata/nsatomicstore/newreferenceobject(for:).md)
