Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

缓存问题,覆盖缓存 #676

Closed
1guankui opened this issue May 15, 2023 · 1 comment
Closed

缓存问题,覆盖缓存 #676

1guankui opened this issue May 15, 2023 · 1 comment
Assignees
Labels
疑问 一个疑问 组件:mirai 与mirai组件相关

Comments

@1guankui
Copy link

版本号

simboot-core-spring-boot-starter:3.0.0;simbot-component-mirai-core:3.0.0.0-RC.2

涉及的编程语言

Java

涉及的组件库

No response

疑问描述

这是springboot框架运行的缓存
图片

这是【扫码登录】Mirai一键整合包 2.15.0-M1的缓存
图片

相比之下,用springboot写代码运行的缓存只有,validator.bin。
即使替换了后者的缓存,运行后也只剩下validator.bin
请问哪里配置不会覆盖缓存?"loginCacheEnabled": true 或者false都试过了
这是不是我每次运行都要验证码的原因?

@1guankui 1guankui added the 疑问 一个疑问 label May 15, 2023
@ForliyScarlet ForliyScarlet added the 等待确认 等待负责人员的确认 label May 15, 2023
@ForteScarlet
Copy link
Member

ForteScarlet commented May 15, 2023

参考 https://github.com/simple-robot/simbot-component-mirai README 中 cache 目录的默认行为 的说明,默认情况下每个bot都会在 cache 目录下的独立子目录保存信息。
mirai的缓存操作完全由mirai自身控制,这应当与是否使用 SpringBoot 没有太大关系。可能mirai会在一些情况下清理、重置或者删除自己的缓存,或者在某些情况下不生成缓存。这些有可能是内部行为,我也没发现除了 loginCacheEnabled 以外的其他类似的可配置项。

@ForteScarlet ForteScarlet added 等待反馈 等待发起者的反馈 组件:mirai 与mirai组件相关 and removed 等待确认 等待负责人员的确认 labels May 15, 2023
@ForliyScarlet ForliyScarlet removed the 等待反馈 等待发起者的反馈 label May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
疑问 一个疑问 组件:mirai 与mirai组件相关
Projects
None yet
Development

No branches or pull requests

3 participants