/// <summary>查询所有相关记录</summary> /// <returns>返回所有 实例<see cref="RegionInfo"/>的详细信息</returns> public IList <RegionInfo> FindAll() { IList <RegionInfo> data = (IList <RegionInfo>)CachingManager.Get("Location-Regions"); if (data == null) { data = this.provider.FindAll(new DataQuery() { Length = int.MaxValue }); CachingManager.Set("Location-Regions", data); } return(data); }
public void TestAdd() { CachingManager.Add("a", 123); CachingManager.Get("a"); }