seaweedfs - 分配文件密钥的 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
此致
解决方案
有时您可能想要保留多个文件 ID。
例如,一张图片可能有多个版本。
在文件 id 中,<volume_id, key, cookie>。
对于_1、_2,它们将被翻译成<volume_id, key+1, cookie>, <volume_id, key+2, cookie>
推荐阅读
- python-3.x - Python 3 - 如何在不截断中间列的情况下将 CSV 行写入文本文件?
- ruby-on-rails - 如何在 Rails 的视图文件中根据 if 语法进行渲染
- python - 是否有 GUI 可以查看 .npy 文件的内容?
- sql - T-SQL 查询优化
- python - 怎么修 ”
弃用警告:Python 中的无效转义序列? - python-3.x - 使用绘制数据的微型版本作为 python 中的图例句柄
- javascript - D3.stratify 未捕获的错误:不明确:分配属性
- r - 在多个级别上重新排序 ggplot2 轴
- python - 从同一父目录中的不同文件夹导入模块时出错
- scala - 可以在编译时使用 SBT 嵌入信息吗?