Repository navigation
Replies: 1 comment 1 reply
|
As long as your value is stored as Data inside, it's OK. NSString, NSData, & NSCoding objects are stored as Data. Others such as primary types (int, float, etc) are not. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
你好,请教下
iOS平台
项目前期对MMKV使用不规范,很多模块都自己生成了一个mmapID,再有些使用user+nmapID,导致项目中MMKV实例多达几十个。现在想规范下,迁移到几个MMKV文件中。MMKV没有提供相关的方法。所以我写了个迁移方法。
这方法会报getDataForKey等方法为私有,所以我将其改为了public。
自己大概测了下,数据好像是可以成功迁移的。
想请教下,这样是否可以,有没有什么风险。
谢谢。
All reactions