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

Performance improvement for .NET 9.0+ #545

Closed MarkCiliaVincenti closed 2 weeks ago

catcherwong commented 3 months ago

Before .NET 9 release a stable version, we shall not add it in TargetFrameworks.

MarkCiliaVincenti commented 3 months ago

Before .NET 9 release a stable version, we shall not add it in TargetFrameworks.

Fair enough, otherwise LGTY?

MarkCiliaVincenti commented 2 months ago

Due to the possibility of thread aborts in .NET Standard 2.0 (they were removed in .NET 5.0), unfortunately we need to change the methods here to use the 'factory method' as explained in https://github.com/MarkCiliaVincenti/Backport.System.Threading.Lock. Let me know if you are interested and I will amend this PR.