using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Mvc30WebRole1.Util { public class CacheUtility { private static Dictionary MemCache = new Dictionary(); private static Dictionary MemCacheLocks = new Dictionary(); private static List keyNames = new List() { "AllLocations" }; static CacheUtility() { foreach (string item in keyNames) { MemCache.Add(item, null); MemCacheLocks.Add(item, new object()); } } public static T GetFromCacheOrAdd(string cacheKey, Func