gpt4 book ai didi

c# - Azure Blob 存储 : How to enumerate blobs in long-running and recoverable fashion?

转载 作者:行者123 更新时间:2023-12-03 01:48:08 25 4
gpt4 key购买 nike

我需要在漫长的操作中枚举可能数百万个 blob。来自 List Blobs documentation ,我仍然留下以下问题:

  • NextMarker 值的持续时间或过期时间是多少?
  • 我可以在不同的 HTTPS 连接上使用 NextMarker 的值吗?可能来自另一台机器(IP 地址)?
  • 我可以使用相同的 NextMarker 值多次调用 List Blobs API 吗?他们都会返回下一页吗? (如果每次调用的页面可能有所不同,我也没关系 - 我不需要 100% 的可靠性)。

最佳答案

正如您在 doc 中看到的那样, NextMarker 只是一个字符串,代表下一个要枚举的 blob。所以你的问题的答案是:

  1. NextMarker 值没有过期时间。
  2. 您可以在不同的 HTTPS 连接上或从另一台计算机(IP 地址)使用它。
  3. 您可以使用相同的 NextMarker 值多次调用 List Blobs API,只要您没有在两个 List Blobs 请求之间更改容器的内容,它们都会返回下一页。

关于c# - Azure Blob 存储 : How to enumerate blobs in long-running and recoverable fashion?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43312065/

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