Friday, May 8, 2020

a bit more on IMemoryCache

Remove an id:

_memoryCache.Remove((object) id);

 
 

Fish out a specific type:

var authItems = _memoryCache.Get<AuthorizationCacheItem>(foo);

No comments:

Post a Comment