/// <summary> /// 获取GetStudent /// </summary> /// <param name="key">key</param> /// <returns>value</returns> public static List<string> GetStudent(string key) { FileDependentCache cache = new FileDependentCache( () => "~/Cache/Student.xml", () => { // 返回缓存的对象 List<string> list = new List<string> { }; return list; }); return cache[key] as List<string>; }
/// <summary> /// 获取GetStudent /// </summary> /// <param name="key">key</param> /// <returns>value</returns> public static List <string> GetStudent(string key) { FileDependentCache cache = new FileDependentCache( () => "~/Cache/Student.xml", () => { // 返回缓存的对象 List <string> list = new List <string> { }; return(list); }); return(cache[key] as List <string>); }