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

# cacheNodes()

Returns the set of cache nodes registered with the receiver.

## Declaration

```swift
func cacheNodes() -> Set<NSAtomicStoreCacheNode>
```

## Return Value

Return Value The set of cache nodes registered with the receiver.

## Discussion

Discussion You should modify this collection using addCacheNodes(_:): and willRemoveCacheNodes(_:).

## See Also

### Utility Methods

- [cacheNode(for:)](coredata/nsatomicstore/cachenode(for:).md)
- [referenceObject(for:)](coredata/nsatomicstore/referenceobject(for:).md)
