dotnetcore / EasyCaching

:boom: EasyCaching is an open source caching library that contains basic usages and some advanced usages of caching which can help us to handle caching more easier!
MIT License
1.97k stars 325 forks source link

Updated InMemoryCachingProvider to stop creating unnecessary threads #480

Closed jkatsiotis closed 1 year ago

jkatsiotis commented 1 year ago

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.

jkatsiotis commented 1 year ago

Is it possible to get it up on Nuget?

catcherwong commented 1 year ago

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

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