0

我正在阅读这个关于 api 的链接:
https://github.com/chrislusf/seaweedfs/wiki/Master-Server-API#assign-a-file-key
但我不明白“计数”选项会做什么。
你能举一个关于这个选项的例子吗?

count: how many file ids to assign. Use <fid>_1, <fid>_2 for the assigned additional file ids. e.g. 3,01637037d6_1, 3,01637037d6_2

此致

4

1 回答 1

1

有时您可能想要保留多个文件 ID。

例如,一张图片可能有多个版本。

在文件 id 中,<volume_id, key, cookie>。

对于_1、_2,它们将被翻译成<volume_id, key+1, cookie>, <volume_id, key+2, cookie>

于 2020-12-26T19:57:49.387 回答