Caching Application Block Settings

Topics: Caching Application Block
Oct 26, 2007 at 6:51 AM
How do i configure the below settings in the new Caching Application Block(EL 3.1)

*Data Protection Settings
*Storage Settings
*Scavenging Settings
*Expiration Info

Can some one share their config settings for the above?
Oct 26, 2007 at 2:54 PM
Hi,

You should find plenty of information in the help file (see topic "Entering Configuration Information" under "Developing Applications Using the Caching Application Block" ms-help://ms.EntLib.2007May/EnterpriseLibrary/html/02-030-Entering_Configuration_Information.htm).

Hope this helps,
Fernando
Oct 27, 2007 at 5:33 PM
Edited Oct 27, 2007 at 5:34 PM
Hi,

I need to configure the similar settings of DATA PROTECTION SETTINGS, SCAVENGING SETTINGS , EXPIRATION SETTINGS of my old cache block in the new enterprise block3.1 cache block.

I have given my both config files settings below. My main questions are
#How do I specify Cache expiration interval info in the config file?
#How do I specify DataProtection Settings in the EL 3.1

Can any one change my settings new settings as per the old one and post.

Below is my old configuration setting for my old cache block..

<CacheManagerSettings>
<!-- DATA PROTECTION SETTINGS -->
<DataProtectionInfo AssemblyName="Microsoft.ApplicationBlocks.Cache"
ClassName="Microsoft.ApplicationBlocks.Cache.DataProtection.DefaultDataProtection"
ValidationKey="****" Validation="SHA1"/>

<!-- STORAGE SETTINGS -->
<StorageInfo AssemblyName="Microsoft.ApplicationBlocks.Cache"
ClassName="Microsoft.ApplicationBlocks.Cache.Storages.SingletonCacheStorage" Mode="InProc"
Validated="true" Encrypted="true"/>

<!-- SCAVENGING SETTINGS -->
<ScavengingInfo AssemblyName="Microsoft.ApplicationBlocks.Cache"
ClassName="Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging"
MemoryPollingPeriod="60" UtilizationForScavenging="80" MaximumSize="200"/>

<!-- EXPIRATION SETTINGS -->
<ExpirationInfo Interval="100000"/>
</CacheManagerSettings>



my current enterprise library 3.1 caching block settings is as below.

<cachingConfiguration defaultCacheManager="Default Cache Manager">
<backingStores>
<add name="inMemory"
type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore,
Microsoft.Practices.EnterpriseLibrary.Caching" />
</backingStores>
<cacheManagers>
<add name="Default Cache Manager"
expirationPollFrequencyInSeconds="60"
maximumElementsInCacheBeforeScavenging="1000" numberToRemoveWhenScavenging="10"
backingStoreName="inMemory" />
</cacheManagers>
</cachingConfiguration>