在未请求的情况下存储区域中的数据(sessionState未使用) - default_region_ [英] Stores data in region eventhough not requested (sessionState not used) - default_region_

查看:55
本文介绍了在未请求的情况下存储区域中的数据(sessionState未使用) - default_region_的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果没有请求,我如何关闭Velocity在区域中存储数据。 我没有启用sessionState标记,但似乎仍然在区域中存储数据。

以下是我的配置:

<?xml version =" 1.0"编码= QUOT; UTF-8英寸;?>
<结构>&
NBSP; < configSections>
&NBSP;&NBSP;&NBSP; < section name =" dataCacheClient" type =" Microsoft.Data.Caching.DataCacheClientSection,CacheBaseLibrary" allowLocation = QUOT;真" allowDefinition的= QUOT;到处" />
&NBSP;&NBSP;&NBSP; < section name =" fabric" type =" System.Data.Fabric.Common.ConfigFile,FabricCommon" allowLocation = QUOT;真" allowDefinition的= QUOT;到处" />
&NBSP; < / configSections>
&NBSP;
&NBSP; < dataCacheClient deployment =" routing">
    < clientNotification pollInterval =" 300" />
&NBSP;&NBSP;&NBSP; <主机>
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < host name =" CRNOL-Q1000260" cachePort = QUOT; 22233" cacheHostName = QUOT; DistributedCacheService" />
&NBSP;&NBSP;&NBSP; < /主机>
&NBSP; < / dataCacheClient>
< / configuration>

10次放置缓存的统计数据:
---------------- ---------------

Default_Region_0293(主)&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
Default_Region_0113(主要)
Default_Region_0111(主要)                  &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
Default_Region_0233(小学)
Default_Region_0332(小学)                  &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
Default_Region_0844(主)&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
Default_Region_0255(小学)
Default_Region_0466(小学)                  &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
Default_Region_0079(主要)
Default_Region_0374(主要)  

尺寸&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; :237430
ItemCount    :10
Region RegionCount  :10
RequestCount:29
MissCount    :19

How could I turn off Velocity from storing data in regions if not requested.  I don't have the sessionState tag enabled but it still seems to store data in regions.


Below is my config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="dataCacheClient" type="Microsoft.Data.Caching.DataCacheClientSection, CacheBaseLibrary" allowLocation="true" allowDefinition="Everywhere" />
    <section name="fabric" type="System.Data.Fabric.Common.ConfigFile, FabricCommon" allowLocation="true" allowDefinition="Everywhere" />
  </configSections>
 
  <dataCacheClient deployment="routing">
    <clientNotification pollInterval="300" />
    <hosts>
      <host name="CRNOL-Q1000260" cachePort="22233" cacheHostName="DistributedCacheService" />
    </hosts>
  </dataCacheClient>
</configuration>

Stats for the cache for 10 puts:
-------------------------------

Default_Region_0293(Primary)                     
Default_Region_0113(Primary)
Default_Region_0111(Primary)                                          
Default_Region_0233(Primary)
Default_Region_0332(Primary)                                          
Default_Region_0844(Primary)                     
Default_Region_0255(Primary)
Default_Region_0466(Primary)                                          
Default_Region_0079(Primary)
Default_Region_0374(Primary)  

Size         : 237430
ItemCount    : 10
RegionCount  : 10
RequestCount : 29
MissCount    : 19

推荐答案

嗨Kand,

这些是默认地区... don不要担心他们。通过适当的获取或放置过载,区域的使用是明确的。

HTH

Andrea Colaci
Hi Kand,

those are Default regions... don't worry about them. The use of regions is explicit through proper get or put overloads.

HTH

Andrea Colaci


这篇关于在未请求的情况下存储区域中的数据(sessionState未使用) - default_region_的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆