<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/KernelCacheCoherencyAction",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:@E@FSKernelCacheCoherencyAction"
  },
  "title" : "FSVolume.KernelCacheCoherencyAction"
}
-->

# FSVolume.KernelCacheCoherencyAction

A type that defines actions for cache state changes.

```
enum KernelCacheCoherencyAction
```

## Topics

### Coherency actions

[`case push`](/documentation/FSKit/FSVolume/KernelCacheCoherencyAction/push)

An action to flush dirty data from cache to storage, preserving cache contents.

[`case pushInvalidate`](/documentation/FSKit/FSVolume/KernelCacheCoherencyAction/pushInvalidate)

An action to flush dirty data to storage and invalidate (clear) the cache.
This also invalidates the item’s cached attributes, so the next request
for attributes fetches them from your module.

[`case invalidate`](/documentation/FSKit/FSVolume/KernelCacheCoherencyAction/invalidate)

An action to invalidate (clear) the cache, discarding any dirty data without writing to storage.
This also invalidates the item’s cached attributes, so the next request
for attributes fetches them from your module.

[`case update`](/documentation/FSKit/FSVolume/KernelCacheCoherencyAction/update)

An action to update the coherency mode while keeping the cache valid, requiring no push or invalidation.

[`case revoke`](/documentation/FSKit/FSVolume/KernelCacheCoherencyAction/revoke)

An action to invalidate all caches, revoke all access to the item, and trigger vnode reclamation.

### Initializers

[`init?(rawValue: Int)`](/documentation/FSKit/FSVolume/KernelCacheCoherencyAction/init(rawValue:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)