Tencent / MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
Other
17.1k stars 1.88k forks source link

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

Closed HideNameUser closed 1 month ago

HideNameUser commented 1 month ago

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

lingol commented 1 month ago

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.