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

鸿蒙版本的MMKV中没有getAll方法 #1311

Closed
HideNameUser opened this issue May 24, 2024 · 1 comment
Closed

鸿蒙版本的MMKV中没有getAll方法 #1311

HideNameUser opened this issue May 24, 2024 · 1 comment

Comments

@HideNameUser
Copy link

如标题中所述,在鸿蒙版本中没有getAll方法,是否可以添加,谢谢

@lingol
Copy link
Collaborator

lingol commented May 24, 2024

No. It's impossible because MMKV erases type information on encoding. There's no way to tell the type of a value on decoding, hence no way to decode it correctly.

As a matter of fact, there's no MMKV.getAll() in Java/Android as well.

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

2 participants