---
title: "addCacheNodes(_:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsatomicstore/addcachenodes(_:)"
---

# addCacheNodes(_:)

Registers a set of cache nodes with the receiver.

## Declaration

```swift
func addCacheNodes(_ cacheNodes: Set<NSAtomicStoreCacheNode>)
```

## Parameters

- `cacheNodes`: A set of cache nodes.

## Discussion

Discussion You should invoke this method in a subclass during the call to load() to register the loaded information with the store.

## See Also

### Loading a Store

- [load()](coredata/nsatomicstore/load().md)
- [objectID(for:withReferenceObject:)](coredata/nsatomicstore/objectid(for:withreferenceobject:).md)
