Files
abot/plugins/fun_command_play/config.toml
liuwei c2bc110c57 响应指令媒资发送增加内存缓存机制
1. 在趣味指令插件中新增媒资缓存:首次发送读磁盘,后续优先从内存读取,减少重复I/O。

2. 缓存键包含路径+mtime+size,文件更新后可自动回源读取新内容。

3. 增加单文件上限与总容量上限,并采用LRU淘汰策略防止内存膨胀。

4. 图片语音视频发送链路改为优先使用缓存字节数据发送。
2026-04-23 13:32:40 +08:00

9 lines
340 B
TOML
Raw Permalink 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.
[FunCommandPlay]
enable = true
# 媒资缓存开关:开启后首次发送读磁盘,后续复用内存缓存。
media-cache-enable = true
# 单个媒资文件允许缓存的最大体积MB
media-cache-max-file-mb = 80
# 媒资缓存总上限MB超限后按最近最少使用策略淘汰。
media-cache-max-total-mb = 200