Replies: 1 comment 1 reply
-
Hi @sommmen I assume the problem you are thinking about is related to serialization, right? If so: yes, you can totally use interfaces directly... if your serializer of choice supports them. I did this in the past with both Newtonsoft.Json and System.Text.Json, by using the related facilities: usually it's a matter of registering some converters or similar in the serializer settings, and you can pass that when creating the serializer "adapter" you pass to FusionCache (eg: Hope this helps, let me know. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Lets say i want to cache an interface type, currently i have to do something like this:
Is there some way of improving this?
Can i for ex. use JsonDerivedType?
Beta Was this translation helpful? Give feedback.
All reactions