Skip to content

Cache CosmosClient by account name #116

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 3 commits into from

Conversation

alexdrenea
Copy link

This PR adds Caching for CosmosClient objects based on the requested account name (#102)

Also fixes a minor bug by validating the CosmosClient object upon creation so the auth key method actually gets re-triggered when credentials cannot be found.

- [bug-fix] validate creation of CosmosClient upon creation so the auth key method actually gets triggered.
Copy link

github-actions bot commented May 6, 2025

Thank you for your contribution @alexdrenea! We will review the pull request and get back to you soon.

@github-project-automation github-project-automation bot moved this from Untriaged to In Progress in Azure MCP Server May 6, 2025
@joshfree joshfree added this to the 2025-05 milestone May 6, 2025
@xiangyan99
Copy link
Member

@alexdrenea we updated the interface of cache service to be

public ValueTask SetAsync(string group, string key, T data, TimeSpan? expiration = null)

Does this meet your requirements?

If yes, could you rebase and update your PR?

xiangyan99 added a commit that referenced this pull request May 20, 2025
xiangyan99 added a commit that referenced this pull request May 22, 2025
* Cache CosmosClient by account name

#116

* update

* update

* update

* update

* update

* update
@xiangyan99
Copy link
Member

Fixed in #231

@xiangyan99 xiangyan99 closed this May 22, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Azure MCP Server May 22, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants