Skip to content

Add details on disabling of token cache#38245

Merged
scottaddie merged 1 commit into
mainfrom
scottaddie/disable-token-cache
Aug 16, 2023
Merged

Add details on disabling of token cache#38245
scottaddie merged 1 commit into
mainfrom
scottaddie/disable-token-cache

Conversation

@scottaddie
Copy link
Copy Markdown
Member

Fixes #38119

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@scottaddie scottaddie merged commit d7dd2e0 into main Aug 16, 2023
@scottaddie scottaddie deleted the scottaddie/disable-token-cache branch August 16, 2023 19:29

#### Disable caching

As there are many levels of cache, it's not possible to disable in-memory caching. However, the in-memory cache may be cleared by creating a new credential instance.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the exception here is when using DefaultAzureCredential without any options. That ends up being a static singleton.

haiyuazhang pushed a commit to haiyuazhang/azure-sdk-for-net that referenced this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Add Section on Clearing Token Cache to TokenCache.md

4 participants