Closed jqctop1 closed 4 months ago
It's a common practice whenever a null value is stored the key gets deleted.
As for the duplication of remove()
& removeValueForKey()
, MMKV originally provides removeValueForKey()
.
Later on, to make the migration from SharedPreferences
to MMKV easy, MMKV implements the interface SharedPreferences.Editor
which provides remove()
.
Now it is too late to remove either one of them. Sorry for any trouble or misunderstanding.
Note:
An crash issue will be ignored & closed in a week without logs.
The language of MMKV
The version of MMKV
The platform of MMKV
What is the issue?
还有removeKey的默认实现就是removeValueForKey 。。。这样暴露两个接口的目的是什么?