摘要:
public class DictionaryCacheManager<TK,TV> { private Dictionary<TK, TV> cacheDic = new Dictionary<TK,TV>(); private Dictionary<TK, object> lockDic = new Dictionary<TK, object>(); public TV Get(TK key,Func<TV> getValue) { if(!CheckKey(key)) { ... 阅读全文