编程客户端配置(Windows Server AppFabric 缓存)

使用 Windows Server AppFabric,您可以通过编程方式或使用一个 XML 配置文件指定缓存客户端配置设置。当您希望以编程方式或不希望使用基于 XML 的应用程序配置文件来更改设置时,编程方式是一种不错的选择。然而,如果您对缓存客户端配置做任何更改,则可能需要重新编译应用程序。在基于 XML 的应用程序配置文件中更改设置不需要任何重编译。有关基于 XML 的缓存客户端配置的详细信息,请参阅基于 XML 的客户端配置(Windows Server AppFabric 缓存)

如果您的大部分应用程序的客户端配置使用的是 XML 应用程序配置文件,您可以通过编程方式覆盖这些设置。

配置类和方法

所有缓存客户端配置属性都在 DataCacheFactoryConfiguration 对象的一个实例中设置。此对象将传递给 DataCacheFactory 构造函数。要浏览这些类和其他包含在配置缓存客户端中的类,请参阅配置方法(Windows Server AppFabric 缓存)

进程

要查看此进程的详细描述及代码示例,请参阅Windows Server AppFabric 缓存客户端入门

另请参阅

概念

Windows Server AppFabric 缓存客户端入门
启用 Windows Server AppFabric 本地缓存
基于 XML 的客户端配置(Windows Server AppFabric 缓存)
群集配置存储选项(Windows Server AppFabric 缓存)
Windows Server AppFabric 缓存问题疑难解答
使用 Windows PowerShell 管理 Windows Server AppFabric 缓存功能
配置设置(Windows Server AppFabric 缓存)
开发缓存客户端(Windows Server AppFabric 缓存)
Windows Server AppFabric 缓存概念

  2011-12-05