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

如何清除缓存? #6

Open
KXwonderful opened this issue Aug 26, 2022 · 2 comments
Open

如何清除缓存? #6

KXwonderful opened this issue Aug 26, 2022 · 2 comments

Comments

@KXwonderful
Copy link

比如有这么个场景,用户退出登录需要清空key-value,目前没有暴露这个方法吧,是直接调用 SPUtils.getInstance().clear()

@KunMinX
Copy link
Owner

KunMinX commented Aug 26, 2022

这个提议不错。直接操作 SPutils 是一办法。后续我看看有无其他办法。

@LGforgone
Copy link

这个方法对MMKV这种无效,得在KeyValueTool中开放一个清除所有数据的接口把

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants