I am trying to write a class to handle Memory cache in a .net core class library. If I use not the core then I could write
using System.Runtime.Caching; using S
The constructor is:
using Microsoft.Extensions.Caching.Memory;
. . .
MemoryCache myCache = new MemoryCache(new MemoryCacheOptions());