How can I cache objects in ASP.NET MVC?
You can still use the cache (shared among all responses) and session (unique per user) for storage. I like the following “try get from cache/create and store” pattern (c#-like pseudocode): public static class CacheExtensions { public static T GetOrStore<T>(this Cache cache, string key, Func<T> generator) { var result = cache[key]; if(result == null) { result … Read more