What is wrong?
In wonderful .NET Core we have a interface
IMemoryCache that we can inject after configuring it with the following command:
After playing some time with given interface I have tried to add some entry to cache:
I was very confused when turned out that it is not working…
Get always returns null.
… is very simple:
Set is extension method that works fine.
Do not know. Really, I can’t figure out why is that happening. Maybe you guys?