« File,FileStream,byte[]3者互相转换总结(转) 页面锚(#Mueu3)到达页面指定位置 »

Enterprise Library Caching Webconfig 配置

  • 分类: C#
  • 评论:0
  • 浏览:3364

Enterprise Library 使用

使用Enterprise Library January 2006 企业库

使用 Enterprise Library Caching 需要引用三个Bll文件

Microsoft.Practices.ObjectBuilder.dll

Microsoft.Practices.EnterpriseLibrary.Common.dll

Microsoft.Practices.EnterpriseLibrary.Caching.dll

Enterprise Library Caching   的Webconfig.config 配置

在 configuration 里添加

 <configSections>
  <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
  <section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
 </configSections>

 <cachingConfiguration defaultCacheManager="Cache Manager">
  <cacheManagers>
   <add expirationPollFrequencyInSeconds="60" maximumElementsInCacheBeforeScavenging="1000"
    numberToRemoveWhenScavenging="10" backingStoreName="Null Storage"
    name="Cache Manager" />
  </cacheManagers>
  <backingStores>
   <add encryptionProviderName="" type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
    name="Null Storage" />
  </backingStores>
 </cachingConfiguration>


本文首发于 炽(MyChy)个人主页 ,本文地址: http://www.jeanwen.com/blog/page/42

相关文章  

关于精彩评论  

  • Dog Cum Porn post:2012-02-09
    well.. it’s like I said!
发表评论
发送中发表评论中......