-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
能不能把插件持久化的改为indexed DB #214
Comments
可是,这个插件支持任意的具有getItem: (key: string) => string | null 和 setItem: (key: string, value: string) => void的对象作为storage,自行把indexed DB的相关操作封装到一个符合条件的对象里,将这个对象作为storage即可 |
没看懂!能举一个简单的例子嘛? |
我自己写了个,用的localforage。能用但感觉不太完美。
因为是异步存取, 问题就在于是异步的,理论上如果修改完
|
I think the answer above solves the issue. |
好的,多谢了。 |
Clear and concise description of the problem
因为我的程序要打包成APP放在手机上使用的,而手机会很经常清理掉本地存储的。但是indexed DB就没有这个问题。
Suggested solution
改为使用indexed DB作为持久化
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: