vault backup: 2026-06-01 10:06:11

This commit is contained in:
2026-06-01 10:06:11 +08:00
parent 0eccd338da
commit f67dbcbc15
2 changed files with 288 additions and 127 deletions
+12 -10
View File
@@ -33,19 +33,21 @@ slot := crc16(key) % 16384
### 2.1 规则
```mermaid
flowchart LR["Hash Tag 计算规则"]
A["rate:limit:{user123}:daily"] --> B["提取 {} 内内容: user123"]
B --> C["CRC16(user123) % 16384"]
C --> D["落点 = slot X"]
flowchart LR
subgraph hashTagRule["Hash Tag 计算规则"]
A["rate:limit:{user123}:daily"] --> B["提取 {} 内内容: user123"]
B --> C["CRC16(user123) % 16384"]
C --> D["落点 = slot X"]
E["rate:limit:{user123}:hourly"] --> B
E["rate:limit:{user123}:hourly"] --> B
F["rate:limit:user456:daily"] --> G["无 {} → 取完整 Key"]
G --> H["CRC16(rate:limit:user456:daily) % 16384"]
H --> I["落点 = slot Y (通常 ≠ X)"]
F["rate:limit:user456:daily"] --> G["无 {} → 取完整 Key"]
G --> H["CRC16(rate:limit:user456:daily) % 16384"]
H --> I["落点 = slot Y (通常 ≠ X)"]
style D fill:#c8e6c9
style I fill:#fff3e0
style D fill:#c8e6c9
style I fill:#fff3e0
end
```
| Key 示例 | 实际参与计算的字符串 | 落点 |