【问题标题】:which best option to store key value pair in flutter? [closed]在颤动中存储键值对的最佳选择是什么? [关闭]
【发布时间】:2022-01-05 15:50:55
【问题描述】:

我应该使用哪个插件将数据保存为键值对,其中一些将是序列化对象?性能上有什么不同吗?

share prefrences, flutter secure storagehive

【问题讨论】:

  • 基于意见的问题在 StackOverFlow 中是题外话

标签: flutter dart sharedpreferences flutter-hive flutter-secure-storage


【解决方案1】:

flutter_secure_storage 使用aes 加密存储,它与shared_preefrences 一样保存,但same security 有更好的选择,但具有高性能hive

性能差异如下所示,

1000 次读取迭代

1000 次写入迭代

【讨论】:

    猜你喜欢
    • 2020-02-03
    • 1970-01-01
    • 1970-01-01
    • 2017-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-03
    • 2010-11-11
    相关资源
    最近更新 更多