Closed TristanH closed 9 months ago
There are many usecases where bulk writes of data should be more efficient than multiple setItems calls.
Maybe the way mmkv works this isn't the case... but if it is, would love setMultipleItems and setMultipleItemsAsync methods!
setMultipleItems
setMultipleItemsAsync
As an example, react-native-async-storage supports a method like this: https://react-native-async-storage.github.io/async-storage/docs/api#multiset
If it's added, should by async on a separate thread so it doesn't block.
This has been added in v0.10.0
@ammarahm-ed great news!!
There are many usecases where bulk writes of data should be more efficient than multiple setItems calls.
Maybe the way mmkv works this isn't the case... but if it is, would love
setMultipleItems
andsetMultipleItemsAsync
methods!As an example, react-native-async-storage supports a method like this: https://react-native-async-storage.github.io/async-storage/docs/api#multiset