Skip to content

Commit 8532332

Browse files
authored
Mention ManagedIdentityCredential's static in-memory cache behavior (Azure#47930)
1 parent 941d363 commit 8532332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/identity/Azure.Identity/samples/TokenCache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The in-memory token cache provided by the Azure Identity library is thread-safe.
2020

2121
#### Disable caching
2222

23-
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.
23+
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. The exception is `ManagedIdentityCredential`, which uses a static instance of in-memory cache by default. This means that the cache can be reused by multiple instances of a credential within the same application instance.
2424

2525
## Persistent token caching
2626

0 commit comments

Comments
 (0)