public void Back(String k, Object v, CacheItemRemovedReason r)
{
try
{
Cache cache =new Cache();
cache.Insert("linli1","123",null,System.DateTime.Now.AddMinutes(0.1),Cache.NoSlidingExpiration,System.Web.Caching.CacheItemPriority.Default,new System.Web.Caching.CacheItemRemovedCallback(Back));
}
catch
{
} }
protected void Application_Start(Object sender, EventArgs e)
{
Context.Cache.Insert("linli","123",null,System.DateTime.Now.AddMinutes(0.1),Cache.NoSlidingExpiration,System.Web.Caching.CacheItemPriority.Default,new System.Web.Caching.CacheItemRemovedCallback(Back));
}
在回调时的Back 函数异常,为什么,怎么解决?
{
try
{
Cache cache =new Cache();
cache.Insert("linli1","123",null,System.DateTime.Now.AddMinutes(0.1),Cache.NoSlidingExpiration,System.Web.Caching.CacheItemPriority.Default,new System.Web.Caching.CacheItemRemovedCallback(Back));
}
catch
{
} }
protected void Application_Start(Object sender, EventArgs e)
{
Context.Cache.Insert("linli","123",null,System.DateTime.Now.AddMinutes(0.1),Cache.NoSlidingExpiration,System.Web.Caching.CacheItemPriority.Default,new System.Web.Caching.CacheItemRemovedCallback(Back));
}
在回调时的Back 函数异常,为什么,怎么解决?
解决方案 »
- table控件得用法
- window.location.reload() 刷新页面时,如何不弹出提示框
- 这样的页面布局怎么实现: 上下两个DIV,上面哪个固定大小,比如高度68PX,下面哪个DIV要求把剩下的高度全部填充。
- 项目里面有些文件夹不显示
- 大家是如何做多语网站的?
- 高分帖
- 开发SharePoint时碰到的 巨大问题~~ 外部程序如何调用SharePoint数据呢?除了WebService
- orcas的一些疑问
- 主细表的问题????????????????????????????????????
- 我的几个问题,希望江雨大侠等解答,谢谢!
- 用ASP.Net 实现类似QQ的在线聊天
- 怎么样将过多的文字用省略号表示?
帮忙的好兄弟可以复制到Global文件中
{
try
{
// Cache cache =new Cache();
httpContext.cache.Insert("linli1","123",null,System.DateTime.Now.AddMinutes(0.1),Cache.NoSlidingExpiration,System.Web.Caching.CacheItemPriority.Default,new System.Web.Caching.CacheItemRemovedCallback(Back));
}
catch
{
} }