How to fetch the first key from in-memory cache in .NET Core?

320 Views Asked by At

I'm working on some solution where I need first value of the in-memory cache and I don't know the key of the first value.

How can I get the key of item at beginning of the in-memory cache?

I'm using this:

IMemoryCache _memoryCache; 

from the Microsoft.Extensions.Caching.Memory namespace.

0

There are 0 best solutions below