<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Hypervisor",
  "identifier" : "/documentation/Hypervisor/hv_cache_type_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Hypervisor"
    ],
    "preciseIdentifier" : "c:@EA@hv_cache_type_t"
  },
  "title" : "hv_cache_type_t"
}
-->

# hv_cache_type_t

The structure that describes an instruction or data cache element.

```
struct hv_cache_type_t
```

## Topics

### Initializers

[`init(_:)`](/documentation/Hypervisor/hv_cache_type_t/init(_:))

Creates a new 32-bit integer that describes a cache element.

[`init(rawValue:)`](/documentation/Hypervisor/hv_cache_type_t/init(rawValue:))

Creates a new cache element with the unsigned 32-bit integer you provide.

### Instance Properties

[`rawValue`](/documentation/Hypervisor/hv_cache_type_t/rawValue)

An unsigned 32-bit integer that represents a cache element.

### Constants

[`HV_CACHE_TYPE_DATA`](/documentation/Hypervisor/HV_CACHE_TYPE_DATA)

The value that describes a cached data value.

[`HV_CACHE_TYPE_INSTRUCTION`](/documentation/Hypervisor/HV_CACHE_TYPE_INSTRUCTION)

The value that describes a cached instuction value.

## Relationships

### Conforms To

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

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

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

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

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

---

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)