2013-06-19 5 views

답변

2

예 :, 데이터가 클라이언트에서 압축 되었기 때문에.

정말 간단한 방법은 CmdLet Get-CacheStatistics입니다. 이 당신을 도울 것입니다 압축하지 않고 압축

... 
Size    : 2575360 
ItemCount   : 1 
RegionCount  : 1 
... 

DataCacheServerEndpoint[] servers = new DataCacheServerEndpoint[1]; 
    servers[0] = new DataCacheServerEndpoint("fr-vmrd-web1", 22233); 
    DataCacheFactoryConfiguration factoryConfig = new DataCacheFactoryConfiguration(); 
    factoryConfig.Servers = servers; 
    factoryConfig.SecurityProperties = new DataCacheSecurity(DataCacheSecurityMode.None, DataCacheProtectionLevel.None); 
    factoryConfig.TransportProperties.MaxBufferSize = int.MaxValue; 
    factoryConfig.TransportProperties.MaxBufferPoolSize = int.MaxValue; 
    factoryConfig.IsCompressionEnabled = true;//or false 
    DataCacheFactory mycacheFactory = new DataCacheFactory(factoryConfig); 

    var data = File.ReadAllText(@"c:\test.log"); //40 MB 
    DataCache myDefaultCache = mycacheFactory.GetDefaultCache(); 
    myDefaultCache.Put("test", data); 

... 
Size    : 41900032 
ItemCount   : 1 
RegionCount  : 1 
... 

희망.