一个缓存(Cache)可以在不同页面设置不同的过期时间吗?
A页面用:
Dim Key As String = "List"
If Caches.GetCache(Key) Is Nothing Then
Caches.SetCache(Key, xxx, 5)
End If
B页面用:
Dim Key As String = "List"
If Caches.GetCache(Key) Is Nothing Then
Caches.SetCache(Key, xxx, 10)
End If
C页面用:
Dim Key As String = "List"
If Caches.GetCache(Key) Is Nothing Then
Caches.SetCache(Key, xxx, 20)
End If
这样设置有什么影响吗?
A页面用:
Dim Key As String = "List"
If Caches.GetCache(Key) Is Nothing Then
Caches.SetCache(Key, xxx, 5)
End If
B页面用:
Dim Key As String = "List"
If Caches.GetCache(Key) Is Nothing Then
Caches.SetCache(Key, xxx, 10)
End If
C页面用:
Dim Key As String = "List"
If Caches.GetCache(Key) Is Nothing Then
Caches.SetCache(Key, xxx, 20)
End If
这样设置有什么影响吗?
解决方案 »
- WebClient.UploadStringAsync(Uri, String, String, Object) 中的object是怎么用的?救解……
- ~~```当在使用ajax的环境下,再使用Response.Write(@"<script>alert('ok')</script>")时出错
- ASP.NET 的GridView,如何证“编辑”列放到后面去?
- 回滚的问题
- FORM提交时如何不保存TEXTBOX中的数据?
- 如何post数据到别的站点?
- 问个小问题,HtmalSelect的Value属性怎么没变化
- 如何将自己构造的DataSet中的数据更新到数据库中的表里??
- 教学帖:教你用简单的方法开发asp.net (二)
- 支付宝接口,提示:没有开通接口访问权限
- 在httphandler中生成页面内容是否可取?
- 能只通过浏览器获得计算机的唯一标示吗?
所以说
一般情况下
任何页面都可以操作这个类的实例(引用类型)
也就是说,可以在任意页面更改它的过期时间,更改后都会反映到其他的页面。