客戶端它是您的DataCacheClient配置部分傳輸元素上的maxBufferSize。
<transportProperties ..whatever else you have.. maxBufferSize="8388608" />
編輯:
如果您使用XML配置:
從MSDN
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!--configSections must be the FIRST element -->
<configSections>
<!-- required to read the <dataCacheClient> element -->
<section name="dataCacheClient"
type="Microsoft.ApplicationServer.Caching.DataCacheClientSection,
Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
allowLocation="true"
allowDefinition="Everywhere"/>
</configSections>
<dataCacheClient requestTimeout="15000" channelOpenTimeout="3000" maxConnectionsToServer="1">
<localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/>
<clientNotification pollInterval="300" maxQueueLength="10000"/>
<hosts>
<host name="CacheServer1" cachePort="22233"/>
<host name="CacheServer2" cachePort="22233"/>
</hosts>
<securityProperties mode="Transport" protectionLevel="EncryptAndSign" />
<transportProperties connectionBufferSize="131072" maxBufferPoolSize="268435456"
maxBufferSize="8388608" maxOutputDelay="2" channelInitializationTimeout="60000"
receiveTimeout="600000"/>
</dataCacheClient>
</configuration>
來源
2010-08-10 14:04:01
Nix
是不是有東西,必須要在服務器端完成的呢? – irperez 2010-08-10 14:33:33
您能否提供DataCache部分的示例XML配置? – irperez 2010-08-10 14:33:56
服務器需要在其配置的advancedProperties元素下進行相同的設置。 – andrewbadera 2011-05-22 18:17:55