关于Memcached客户端CPU过高问题的排查

复制static Serializer ser = new Serializer(typeof(List<UserModule>)); //using JsonExSerializer; publicstatic List<UserModule> GetAllUserModule(int userId) { string cache = CacheManager.Current.Get<string>(GetCacheKey(userId)); if (!string.IsNullOrEmpty(cache)) { return ser.Deserialize(cache) as List<UserModule>; } else { returnnull; } } publicstatic List<UserModule> SetAllUserModule(int userId,关于U过高问 List<UserModule> modules) { if (modules != null) { string cache = ser.Serialize(modules); CacheManager.Current.Add(GetCacheKey(userId), cache); } else { CacheManager.Current.Remove(GetCacheKey(userId)); } return modules; } 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.
本文地址:http://www.bhae.cn/news/261f5899680.html
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。