In ASP.NET Core, can we have 2 instances of local memory (IMemoryCache
) which we can configure with different size options?
I know IMemoryCache
is a singleton and only one instance should be available in application scope.
But I'm just curious is it even possible so for use case lets say one want to limit size of 100 MB for one set of data and other want to limit size of 500MB for other set of data?