---
title: FSVolume.DataCacheMode
framework: fskit
role: symbol
role_heading: Enumeration
path: fskit/fsvolume/datacachemode
---

# FSVolume.DataCacheMode

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

## Declaration

```swift
enum DataCacheMode
```

## Topics

### Data cache modes

- [FSVolume.DataCacheMode.none](fskit/fsvolume/datacachemode/none.md)
- [FSVolume.DataCacheMode.readWithCache](fskit/fsvolume/datacachemode/readwithcache.md)
- [FSVolume.DataCacheMode.readWriteWithCache](fskit/fsvolume/datacachemode/readwritewithcache.md)

### Initializers - generated

- [init(rawValue:)](fskit/fsvolume/datacachemode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Managing caching behavior

- [setCacheState(for:cacheMode:coherencyType:action:)](fskit/fsvolume/setcachestate(for:cachemode:coherencytype:action:).md)
- [FSItem](fskit/fsitem.md)
- [FSVolume.KernelCacheCoherencyType](fskit/fsvolume/kernelcachecoherencytype.md)
- [FSVolume.KernelCacheCoherencyAction](fskit/fsvolume/kernelcachecoherencyaction.md)
