如何配置Kentico CMS使用角色内缓存 [英] How to configure Kentico CMS to use In-Role Cache

查看:148
本文介绍了如何配置Kentico CMS使用角色内缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我是新来Kentico CMS。

我们从这里下载。然后安装应用程序的Windows Azure项目。

当我在看的web.config,Kentico CMS 7(今天的)使用的共享缓存这一直是德precated几年了。

有什么办法,我可以配置为使用角色内缓存(或最坏情况下的缓存服务仍处于preVIEW)?

 <! -  Azure的AppFabric的缓存BEGIN  - >
<节名称=dataCacheClients
   类型=Microsoft.ApplicationServer.Caching.DataCacheClientsSection,
       Microsoft.ApplicationServer.Caching.CoreallowLocation =真
   allowDefinition的=无处不在/>
<! - Azure的AppFabric的缓存END - ><! - Azure的AppFabric的缓存BEGIN - >
< dataCacheClients>
  < dataCacheClient NAME =默认>
    <主机>
      <主机名=YourName.cache.windows.netcachePort =22233/>
    < /主机>
    < securityProperties模式=消息>
      < messageSecurity authorizationInfo =YourKey/>
    < / securityProperties>
  < / dataCacheClient>
  < dataCacheClient NAME =SslEndpoint>
    <主机>
      <主机名=YourName.cache.windows.netcachePort =22243/>
    < /主机>
    < securityProperties模式=消息sslEnabled =真>
      < messageSecurity authorizationInfo =YourKey/>
    < / securityProperties>
  < / dataCacheClient>
< / dataCacheClients>
<! - Azure的AppFabric的缓存END - >


解决方案

在缓存配置指向一个缓存集群主机元素,它并不关心缓存集群的部署方式 - 旧的服务,新的服务或-role。

如果您使用新的缓存服务,您应该能够使用高速缓存的URL来更改配置,以点在你的缓存实例

要在角色使用缓存,将需要建立相关的负载平衡端点的云服务,然后用你的云服务URL配置客户端。

First of all, I'm new to Kentico CMS.

We download the from here. Then install the application as Windows Azure project.

When I look at web.config, Kentico CMS 7 (as of today) uses Shared Caching which has been deprecated a couple of years back.

Is there any way I can configure to use In-Role Cache (or worst case Cache Service which is still in Preview)?

<!-- Azure AppFabric cache BEGIN -->
<section name="dataCacheClients" 
   type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, 
       Microsoft.ApplicationServer.Caching.Core" allowLocation="true" 
   allowDefinition="Everywhere"/>
<!-- Azure AppFabric cache END -->

<!-- Azure AppFabric cache BEGIN -->
<dataCacheClients>
  <dataCacheClient name="default">
    <hosts>
      <host name="YourName.cache.windows.net" cachePort="22233"/>
    </hosts>
    <securityProperties mode="Message">
      <messageSecurity authorizationInfo="YourKey"/>
    </securityProperties>
  </dataCacheClient>
  <dataCacheClient name="SslEndpoint">
    <hosts>
      <host name="YourName.cache.windows.net" cachePort="22243"/>
    </hosts>
    <securityProperties mode="Message" sslEnabled="true">
      <messageSecurity authorizationInfo="YourKey"/>
    </securityProperties>
  </dataCacheClient>
</dataCacheClients>
<!-- Azure AppFabric cache END -->

解决方案

The host element in the caching configuration points to a caching cluster and it doesn't care about how the cache cluster is deployed - old service, new service or in-role.

If you use the new Caching service you should be able to change the configuration to point at your cache instance using your cache's URL

To use in-role caching you will need to create the relevant load-balanced endpoints for the cloud service and then configure your client with your cloud service URL.

这篇关于如何配置Kentico CMS使用角色内缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆