<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/MusicTokenRequestOptions/ignoreCache",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A19TokenRequestOptionsV11ignoreCacheACvpZ"
  },
  "title" : "ignoreCache"
}
-->

# ignoreCache

An option that indicates the token provider needs to discard
any cached token and generate a new token.

```
static let ignoreCache: MusicTokenRequestOptions
```

## Discussion

You can add the newly generated token to an in-memory or persistent
cache for faster access upon subsequent requests for this token.

---

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)