0
在我的web.config对我非常简单的Web应用程序我的代码:NCACHE似乎并没有包含我的会话数据
<sessionState
cookieless="false" regenerateExpiredSessionId="true" mode="Custom"
customProvider="NCacheSessionProvider" timeout="20">
<providers>
<add
name="NCacheSessionProvider"
type="Alachisoft.NCacheExpress.Web.SessionState.NSessionStoreProvider"
sessionAppId="NCacheTest"
cacheName="myreplicatedcache"
writeExceptionsToEventLog="false"
enableLogs="false"
/>
</providers>
</sessionState>
我加入字节的1000的[1024]对象到会话[ ]同时使用:
for (int count = 0; count < total; count++)
Session[DateTime.Now.Ticks + "_" + count] = new byte[size];
然而,当我检查了nCache我的命令行的统计,我得到的是:
Cache-ID: myreplicatedcache
Scheme: replicated-server
Status: Running
Cluster size: 2
bibble1:8700
bibble2:8700
UpTime: 26/05/2010 13:23:09
Capacity: 200 MB
Count: 1
Cache-ID: mycache
Scheme: local
Status: Stopped
虽然addtestdata.exe myreplicatedcache/c 1000/s 1024增加了计数。
但是,我的对象在会话中仍然可用。
有人能告诉我发生了什么事吗?
谢谢,
马特。