MemoryCache – AddOrGetExisting Method

MemoryCache provides an easy to use method AddOrGetExisting which provides an easy way to retrive or add data to cache. While it is extremely convenient, it comes off at a cost. Let's explore it a bit along with alternative. Note : For the sake of example, let us ignore multi-threading scenarios for the moment. public class MemoryCacheRunner { … Continue reading MemoryCache – AddOrGetExisting Method