Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Updated InMemoryCachingProvider to stop creating unnecessary threads #480

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

jkatsiotis
Copy link
Contributor

await / async are being misused as InMemory cache doesn't need await at all.

Furthermore, Task.Run creates a new thread for an operation that can complete synchronously.

Copy link
Member

@catcherwong catcherwong left a comment

Choose a reason for hiding this comment

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

LGTM

@catcherwong catcherwong merged commit 0a45d87 into dotnetcore:dev Jul 7, 2023
3 checks passed
@jkatsiotis
Copy link
Contributor Author

Is it possible to get it up on Nuget?

@catcherwong
Copy link
Member

You can follow github action to get a pre-release version at first.

https://github.com/dotnetcore/EasyCaching/actions/runs/5481597784/jobs/9986087664

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.

2 participants