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

# FSVolume.DataCacheMode

A type that defines the cache mode requested by the kernel for data operations.

```
enum DataCacheMode
```

## Topics

### Data cache modes

[`case none`](/documentation/FSKit/FSVolume/DataCacheMode/none)

A mode that indicates no active caching.

[`case readWithCache`](/documentation/FSKit/FSVolume/DataCacheMode/readWithCache)

A mode that indicates read access with caching enabled.

[`case readWriteWithCache`](/documentation/FSKit/FSVolume/DataCacheMode/readWriteWithCache)

A mode that indicates read-write access with caching enabled.

### Initializers

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)