gpt4 book ai didi

caching - Azure创建区域 "This operation is not supported by the cache."

转载 作者:行者123 更新时间:2023-12-04 05:41:44 25 4
gpt4 key购买 nike

我尝试使用 Azure Datacache 对象添加区域,但收到此类错误“缓存不支持此操作。”

Dim dataCache As DataCache = dataCacheFactory.GetDefaultCache()
Dim tagList As New List(Of DataCacheTag)() From {New DataCacheTag("tagList")}

dataCache.CreateRegion("region-1")

dataCache.Put("key-name", "key-value", New Timespan(0, 10, 0), tagList, "region-1")

最佳答案

如果您点击下面的链接,您将看到 Windows Azure Cache API 不支持 dataCache.CreateRegion():

Caching API Support in Windows Azure Caching

Windows Azure Caching (Preview) 确实支持它因此,如果您想分别创建区域和处理缓存,则可以在项目中使用专用缓存或共置缓存。

如果您想了解 Windows Azure 共享缓存和 Windows Azure 缓存(预览)之间的区别,请查看我的博客:Difference between Windows Azure Cache(Preview) and Windows Azure Shared Cache

关于caching - Azure创建区域 "This operation is not supported by the cache.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11179429/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com