http://www.codeproject.com/csharp/cacheinwinformapps.asp
使用System.Web.Caching.Cache 对象, 定义应用程序的入口类定义: 添加一个属性,取得Cache
public static Cache Cache
{
get
{
EnsureHttpRuntime();
return HttpRuntime.Cache;
}
}
要注意的是取得的这个Cache与WEB app中的不能共享,每个是单独的Cache对象,因此不能在winform的Cache.Insert()之后在web app中取得.
相关文章:
-
2021-07-09
-
2021-08-25
-
2021-12-15
-
2021-10-10
-
2022-02-26
-
2021-10-18
-
2022-12-23
猜你喜欢
-
2022-12-23
-
2021-11-14
-
2022-12-23
-
2022-02-04
-
2022-12-23
-
2022-12-23
相关资源
-
下载
2021-06-05
-
下载
2023-02-01
-
下载
2023-03-30