<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSAtomicStore/addCacheNodes(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAtomicStore(im)addCacheNodes:"
  },
  "title" : "addCacheNodes(_:)"
}
-->

# addCacheNodes(_:)

Registers a set of cache nodes with the receiver.

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

## Parameters

`cacheNodes`

A set of cache nodes.

## Discussion

You should invoke this method in a subclass during the call to [`load()`](/documentation/CoreData/NSAtomicStore/load()) to register the loaded information with the store.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)