<!--
{
  "documentType" : "article",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVMetalTextureCache-cache-attributes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Cache Attributes"
}
-->

# Cache Attributes

Attributes specifying texture cache behavior, used with the [`CVMetalTextureCacheCreate(_:_:_:_:_:)`](/documentation/CoreVideo/CVMetalTextureCacheCreate(_:_:_:_:_:)) function.

## Topics

### Constants

[`let kCVMetalTextureCacheMaximumTextureAgeKey: CFString`](/documentation/CoreVideo/kCVMetalTextureCacheMaximumTextureAgeKey)

The length of time, in seconds, before the cache is automatically evicted.

[`let kCVMetalTextureUsage: CFString`](/documentation/CoreVideo/kCVMetalTextureUsage)

The set of options that define how you can use a texture on the GPU.



---

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)