Getting/Adding/Updating/Inserting Into Cache
Adding and retrieving items in the cache
MyObject cachedItem = _appCaches.RuntimeCache.GetCacheItem<MyObject>("MyCacheKey", () => new MyObject());Retrieving an item from the cache without a callback
MyObject cachedItem = _appCaches.RuntimeCache.GetCacheItem<MyObject>("MyCacheKey");Inserting an item into the cache without retrieval
Last updated
Was this helpful?