利用Microsoft.ApplicationBlocks.Cache模块在自己的程序中做缓存。
但是它的那几个配置文件,应该放到哪里呢?
报告配置信息是无效的。
我在我的程序中把Microsoft.ApplicationBlocks.Cache的dll加入到引用,
然后程序中cacheManager.Add(key ,obj);
然后在后面cacheManager.GetData(key);
配置文件我没有换地方,就在Microsoft.ApplicationBlocks.Cache安装路径的
Solution Items文件夹下。
还有就是CacheService.config文件的内容
<CacheService>
<!-- STORAGE SETTINGS
Use StorageInfo to set the assembly and class which implement
the storage interfaces for the cache.
-->
<StorageInfo> 
<AssemblyName>A</AssemblyName> 
<ClassName>B</ClassName> 
<Mode>InProc</Mode>
<MaximumSize>C</MaximumSize>
</StorageInfo>

<!-- SCAVENGING SETTINGS
Use the ScavengingAlgorithm to set a class that will be executed when
scavenging is performed.
-->
<Scavenging>
<Algorithm> 
<AssemblyName>AA</AssemblyName>
<ClassName>BB</ClassName>
</Algorithm>
<MemoryPollingPeriod>60</MemoryPollingPeriod> 
<UtilizationForScavenging>80</UtilizationForScavenging>
</Scavenging>

<!-- EXPIRATION SETTINGS
Use the ExpirationCheckInterval to change the interval to check for 
cache items expiration. The value attribute is represented in seconds.
-->
<ExpirationCheckInterval>60</ExpirationCheckInterval>
</CacheService>好像是设置处理缓存数据生存期的,我要是没有自己实现,这里我要写什么呢?