ZiggyCreatures / FusionCache

FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
MIT License
1.9k stars 97 forks source link

[FEATURE] Optimise dependencies by adding TFM #230

Closed thompson-tomo closed 4 months ago

thompson-tomo commented 7 months ago

Is your feature request related to a problem? Please describe.

I want to minimise dependencies in my project by utilising framework dependencies wherever possible

Describe the solution you'd like

I want the package to not have an explicit dependency on System.Text.Json as it can be provided by the framework. At the same time other dependencies can be optimised when an additional TFM is added.

Describe alternatives you've considered

Accept the additional dependency

Additional context

No response

jodydonetti commented 7 months ago

Hi @thompson-tomo , sorry I don't understand what you are asking.

Which package are you talking about? The main FusionCache package does not have a dependency on System.Text.Json, and the package that act as an adapter for that serializer must have a dependency on it, otherwise it would not work.

Can you be clearer please?

thompson-tomo commented 7 months ago

@jodydonetti to make it clearer i have simply submitted a PR for the changes #231

jodydonetti commented 7 months ago

Thanks @thompson-tomo , will look into it and let you know.

jodydonetti commented 7 months ago

God damn it if it generates a ton of warnings now 😅

image

thompson-tomo commented 7 months ago

To make it easier i have just suppressed the build warnings via https://github.com/ZiggyCreatures/FusionCache/pull/233

akoken commented 7 months ago

Why .NET Core 3.1 @thompson-tomo? It's out of support and full of vulnerabilities. No need to mention API changes that could be problematic. I think you shouldn't support it @jodydonetti?

thompson-tomo commented 7 months ago

I am aware of net core 3.1 is out of support but some users still utilise it & that is the earliest framework which can provide the necessary library as part of the framework. If a user is developing for net 6 then they will get v6 of STJ.

jodydonetti commented 7 months ago

Hi all, I think I need a little bit more time to get to the bottom of this, consider all the angles and the best approach all around.

I'll release the next version and then I'll come back to this.

Will update.

thompson-tomo commented 7 months ago

Note from my side I have no problem bumping it net 6 or potentially adding it as an additional TFM.

jodydonetti commented 3 months ago

Hi all, v1.3.0 is out 🥳