Skip to content

Expose access token cache count - #5330

Merged
bgavrilMS merged 10 commits into
mainfrom
bogdanrobbie/cache
Jun 16, 2025
Merged

Expose access token cache count#5330
bgavrilMS merged 10 commits into
mainfrom
bogdanrobbie/cache

Conversation

@bgavrilMS

Copy link
Copy Markdown
Member

Fixes #5329

Changes proposed in this request
Expose the cached access token count.

Testing
Unit

Performance impact
By keeping a count variable, we do not enumerate dictionaries, so this op is O(1)

Documentation

  • All relevant documentation is updated.

@bgavrilMS
bgavrilMS requested a review from a team as a code owner June 6, 2025 22:48
Comment thread src/client/Microsoft.Identity.Client/Cache/CacheSessionManager.cs
Comment thread tests/Microsoft.Identity.Test.Performance/AcquireTokenForClientCacheTests.cs Outdated
Comment thread tests/Microsoft.Identity.Test.Unit/ParallelRequestsTests.cs Outdated
@Robbie-Microsoft

Copy link
Copy Markdown
Contributor

Is this new telemetry always enabled? And there's no way to disable it? Is that correct?

Comment thread src/client/Microsoft.Identity.Client/PublicApi/net462/PublicAPI.Unshipped.txt Outdated
@bgavrilMS
bgavrilMS force-pushed the bogdanrobbie/cache branch 2 times, most recently from 8769561 to b295e3b Compare June 10, 2025 21:45
@bgavrilMS
bgavrilMS force-pushed the bogdanrobbie/cache branch 3 times, most recently from e27afa6 to 63b1f87 Compare June 15, 2025 17:25
@bgavrilMS
bgavrilMS force-pushed the bogdanrobbie/cache branch from 55ddbd6 to 634e4a5 Compare June 16, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Expose cache access token count

3 participants