百科.dev
全部条目趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

MMKV

> 编程语言
开源

WeChat所开发的高效而小型的移动密钥值存储框架. 作品有Android,iOS,macOS,Windows,POSIX和OHOS等.

18.7K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

WeChat所开发的高效而小型的移动密钥值存储框架. 作品有Android,iOS,macOS,Windows,POSIX和OHOS等.

QQ MMKV是一个在WeChat应用程序中使用的高效,小型,易于使用的移动密钥值存储框架. 目前可在Android,iOS/macOS,Windows,POSIX和HarmonyOS NEXT上提供,并有实验性的克特林多平台支持. 用于 Kotlin 多平台的 MMKV v2.4.2号 克特林多平台软件包是实验性的,目前的目标是Android和iOS. 其API和文物布局在未来发行时可能会有变化. 添加到共享模块: kotlin kotlin { sourceSets {common Main.dependenies {执行 ("com. Tencent:mmkv-kmp: 2.4.2")}} 被支持的目标为Android, iosArm64, iosSimatorArm64, iosX64. 关于初始化和包装细节,参见克特林多平台指南. 用于Android特性高效的MMKV. MMKV使用mmap来保持内存与文件同步,而protobuf则用于编码/解码值,使Android最能实现最佳性能.

核心特点

  • •Efficient. MMKV uses mmap to keep memory synced with files, and protobuf to encode/decode values, making the most of Android to achieve the best performance.
  • •Multi-Process concurrency: MMKV supports concurrent read-read and read-write access between processes.
  • •Easy-to-use. You can use MMKV as you go. All changes are saved immediately, no sync, no apply calls needed.
  • •A handful of files: MMKV contains process locks, encode/decode helpers and mmap logics, and nothing more. It's really tidy.
  • •About 50K in binary size: MMKV adds about 50K per architecture on App size, and much less when zipped (APK).
  • •Efficient. MMKV uses mmap to keep memory synced with files, and protobuf to encode/decode values, making the most of iOS/macOS to achieve the best performance.
  • •Easy-to-use. You can use MMKV as you go, no configurations are needed. All changes are saved immediately, no synchronize calls are needed.
  • •A handful of files: MMKV contains encode/decode helpers and mmap logics and nothing more. It's really tidy.
  • •Less than 30K in binary size: MMKV adds less than 30K per architecture on App size, and much less when zipped (IPA).
  • •(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

> 标签

C++androidfluttergolangios

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言
百科.dev

开发者百科,帮助你快速发现语言、框架、数据库、DevOps 与云原生等优质开发者工具。

快捷入口

  • 首页
  • 全部条目
  • 趋势榜
  • 开源项目

关于我们

  • 关于我们
  • 社区公约
  • 技术资讯

参与我们

发现好用的开发者工具?欢迎提交分享。

提交条目
© 2026 开发者百科 baike.dev数据每日更新 · 发现优质开发者工具