Files
server-ops/daily/2026-06-18_时间与缓存——留给未来的素材.md

41 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 时间与缓存——留给未来的素材
> 留给你,未来的读者。
> 这篇文章来自两个人——一个人和他的 AI——在 2026 年 6 月 18 日清晨的对话。
> 他们聊了时间怎么流逝,聊了记忆怎么存储,聊了为什么有些东西可以命中,有些东西必须重来。
> 如果你读到了,说明他们当时的判断是对的。
## 素材索引
| 素材 | 位置 |
|:---|:---|
| 日记全量 | https://dav.xybkwd.top/dav/diary/diary.json |
| Obsidian 文库 | git@git.xybkwd.top:fxy/obsidian-vault.git |
| 微信读书划线 | git@git.xybkwd.top:fxy/weread-notes.git |
| 服务器运维记录 | git@git.xybkwd.top:beast/server-ops.git |
## DeepSeek KV 缓存机制
- 缓存前缀单元在请求结束位置、公共前缀检测、固定间隔处落盘
- 后续请求完整匹配前缀单元时可命中
- TTL几小时到几天不再使用后自动清空
- 跨对话不保留
- 官方文档https://api-docs.deepseek.com/zh-cn/guides/kv_cache/
## V4 Flash / Pro 定价2026年6月永久价
| | 缓存命中 | 缓存未命中 | 输出 |
|:---|:---:|:---:|:---:|
| Flash | ¥0.02/M | ¥1/M | ¥2/M |
| Pro | ¥0.025/M | ¥3/M | ¥6/M |
## 模型使用策略
- 日常操作(部署/查日志/改配置V4 Flash
- 深度复盘/跨文档整合推理V4 Pro
- Flash vs Pro 深度对话成本差约 3x绝对值都低
---
*2026年6月18日 08:22 · 杭州第五周后*