---
title: kCVMetalTextureCacheMaximumTextureAgeKey
framework: corevideo
role: symbol
role_heading: Global Variable
path: corevideo/kcvmetaltexturecachemaximumtextureagekey
---

# kCVMetalTextureCacheMaximumTextureAgeKey

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

## Declaration

```swift
let kCVMetalTextureCacheMaximumTextureAgeKey: CFString
```

## Discussion

Discussion The default value is 1. To disable the age-out mechanism completely, set a maximum texture age of 0. The cache can be manually evicted with CVMetalTextureCacheFlush(_:_:).

## See Also

### Constants

- [kCVMetalTextureUsage](corevideo/kcvmetaltextureusage.md)
