首页 > 解决方案 > 分配文件密钥的 Master API 中的“计数”是什么意思?

问题描述

我正在阅读这个关于 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

此致

标签: seaweedfs

解决方案


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

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

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

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


推荐阅读