加入图片缓存,每次从文件系统中提取相关的图片,加载成bytes,后续使用时直接从缓存中提取。减少IO读取次数,提高发送性能

This commit is contained in:
liuwei
2025-06-24 10:06:19 +08:00
parent 4db938df0b
commit b50ece6546
5 changed files with 342 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
[XiurenImage]
enable = true
image_folder = '/mnt/nfs_share'
cache_size = 10 # 内存缓存大小默认5张图片
command = ["图来", "秀人", "美图", "随机图片"]
command-format = """
🖼️秀人图片指令: