{"full_name":"Tencent/MMKV","owner":"Tencent","name":"MMKV","shard":"1","url":"https://github.com/Tencent/MMKV","description":"An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS.","homepage":"","topics":["android","ios","kotlin","swift","macos","key-value","wechat","flutter","golang","python","windows","tvos","visionos","watchos","ohos"],"tag_pages":["android","flutter","golang","ios","key-value","kotlin","macos","python","swift","tvos","watchos","wechat","windows"],"language":"C++","license":"NOASSERTION","avatar":"https://avatars.githubusercontent.com/u/18461506?v=4","created_at":"2018-09-17T10:59:36Z","pushed_at":"2026-11-13T12:58:06Z","metrics":{"stars":18774,"forks":1997,"watchers":284,"issues":1197,"prs":401,"releases":64,"issues_open":3,"issues_closed":1194,"prs_open":0,"prs_closed":65,"prs_merged":336,"discussions":76},"growth":{"day":{"stars":-2,"forks":0,"base_day":"2026-11-15"},"week":{"stars":1,"forks":-2,"base_day":"2026-11-04"},"month":{"stars":11,"forks":5,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[18723,18724,18726,18726,18729,18732,18732,18732,18731,18734,18734,18733,18734,18737,18738,18740,18741,18739,18745,18746,18746,18748,18748,18749,18752,18754,18755,18755,18754,18754,18754,18754,18757,18757,18758,18760,18761,18762,18763,18763,18764,18763,18763,18763,18764,18764,18766,18765,18767,18767,18769,18769,18770,18769,18769,18768,18768,18770,18773,18773,18773,18774,18774,18775,18775,18776,18774],"forks":[1983,1983,1984,1985,1985,1985,1986,1986,1987,1987,1987,1987,1987,1986,1986,1987,1987,1987,1987,1987,1987,1987,1987,1987,1988,1989,1989,1990,1990,1991,1992,1991,1992,1992,1992,1992,1992,1992,1992,1992,1992,1992,1994,1994,1993,1994,1995,1995,1995,1994,1994,1995,1996,1996,1996,1996,1997,1997,1997,1999,1998,1998,1997,1997,1997,1997,1997],"watchers":[288,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,288,288,288,288,288,288,288,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,284,284,284,284,284,284,284,284,284,284,284,null,284,284,284,284,284,284],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,2,3,3,3,3,3],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0]},"boards":{},"same_owner":[{"full_name":"Tencent/AI-Infra-Guard","name":"AI-Infra-Guard","shard":"1","boards":{}},{"full_name":"Tencent/BrowserSkill","name":"BrowserSkill","shard":"1","boards":{}},{"full_name":"Tencent/LoopForge","name":"LoopForge","shard":"1","boards":{"daily":12,"weekly":86,"daily_rate":1,"weekly_rate":1,"monthly_rate":5,"daily_forks":35,"daily_watchers":190}},{"full_name":"Tencent/QMUI_Android","name":"QMUI_Android","shard":"1","boards":{}},{"full_name":"Tencent/TNN","name":"TNN","shard":"1","boards":{}},{"full_name":"Tencent/WeKnora","name":"WeKnora","shard":"1","boards":{"monthly":169}},{"full_name":"Tencent/cherry-markdown","name":"cherry-markdown","shard":"1","boards":{}},{"full_name":"Tencent/lemon-cleaner","name":"lemon-cleaner","shard":"1","boards":{}},{"full_name":"Tencent/libpag","name":"libpag","shard":"1","boards":{}},{"full_name":"Tencent/mars","name":"mars","shard":"1","boards":{}},{"full_name":"Tencent/matrix","name":"matrix","shard":"1","boards":{}},{"full_name":"Tencent/ncnn","name":"ncnn","shard":"1","boards":{}},{"full_name":"Tencent/omi","name":"omi","shard":"1","boards":{}},{"full_name":"Tencent/puerts","name":"puerts","shard":"1","boards":{}},{"full_name":"Tencent/teamai-cli","name":"teamai-cli","shard":"1","boards":{}},{"full_name":"Tencent/tinker","name":"tinker","shard":"1","boards":{}},{"full_name":"Tencent/tmagic-editor","name":"tmagic-editor","shard":"1","boards":{}},{"full_name":"Tencent/vConsole","name":"vConsole","shard":"1","boards":{}},{"full_name":"Tencent/wepy","name":"wepy","shard":"1","boards":{}}],"issues":[{"number":1707,"title":"Apple MMKVCore allKeys() truncates keys at embedded NUL bytes","comments":2,"created_at":"2026-11-12T09:58:58Z"},{"number":1706,"title":"Swift Package Manager Support: Add FlutterFramework Dependency","comments":2,"created_at":"2026-11-07T07:26:37Z"},{"number":1698,"title":"t_status is a process-wide global on Apple platforms, so concurrent writes to two encrypted instances can lose every key","comments":2,"created_at":"2026-10-21T09:13:41Z"}],"discussions":[{"number":1685,"title":"flutter_mmkv 如何查看mmkv中存储的数据啊？类似前端浏览器一样可以在开发工具中看到","comments":1,"category":"Q&A","created_at":"2026-08-28T09:08:15Z"},{"number":1670,"title":"mmkv-go — a cgo-free, read-only MMKV reader in pure Go (zero-alloc, ~10–75× faster reads)","comments":1,"category":"Show and tell","created_at":"2026-06-09T04:27:57Z"},{"number":1655,"title":"Is latest version of MMKV for android app 16kb Page Size compatible?","comments":1,"category":"Q&A","created_at":"2026-03-31T10:59:53Z"},{"number":1651,"title":"iOS有遇到过[MMKV.defaultMMKV setBool:value forKey:key] 不生效的问题吗？","comments":1,"category":"General","created_at":"2026-03-24T13:46:08Z"},{"number":1637,"title":"MMKV是否支持多个App之间的通信","comments":1,"category":"Q&A","created_at":"2026-01-28T10:00:13Z"},{"number":1636,"title":"一个mmkv文件中key太多会影响读写的性能吗？","comments":1,"category":"Q&A","created_at":"2026-01-27T13:16:28Z"},{"number":1631,"title":"支持SPM","comments":1,"category":"Q&A","created_at":"2026-01-11T06:20:43Z"},{"number":1584,"title":"About UnsupportedArchitectureException Bug","comments":1,"category":"Q&A","created_at":"2025-09-11T07:40:50Z"}],"latest_release":{"name":"v2.4.3","tag":"v2.4.3","published_at":"2026-10-16T11:34:02Z","body":"## v2.4.3 / 2026-10-16\r\n\r\nThis is a bugfix release based on v2.4.2, focused on encryption, expiration, imports, and file recovery. It also adds Android KMP initialization without an explicit Context and non-expired-key enumeration on Apple platforms.\r\n\r\n**Upcoming compatibility change:** The release after v2.4.3 will raise the minimum supported versions from iOS 13.0 to **iOS 15.0** and from watchOS 6.0 to **watchOS 9.0**, to align with Xcode 27's supported deployment targets. The minimum deployment targets in v2.4.3 remain unchanged.\r\n\r\n### Changes for All Platforms\r\n* **Fix:** Prevented IV reuse when repeatedly updating an encrypted store containing a single key.\r\n* **Fix:** Loaded expiration state before the first read or write after reopening a store, and honored expiration in read-only reads, key lists, and counts.\r\n* **Fix:** Fixed lock-order deadlocks in `importFrom()` ([#1688](https://github.com/tencent/mmkv/issues/1688)) and `removeStorage()`. Callers must still prevent concurrent use of an instance being removed.\r\n* **Fix:** Preserved source values when importing into encrypted stores, rejected self-import, and counted only successful imports.\r\n* **Fix:** Corrected unsigned protobuf value-length decoding and hardened key/value length checks, payload growth, expiration migration, and encryption removal against oversized or unrepresentable data.\r\n* **Fix:** Corrected file-size validation, undersized-file handling, read-only recovery, and cached restore mapping checks; required complete whole-file reads and zero-fill writes.\r\n* **Fix:** Corrected small-buffer moves and resets to avoid truncation errors and unaligned access.\r\n\r\n### Kotlin Multiplatform\r\n* **Fix:** Restored Android string-write interoperability with the native Java API.\r\n* **Feature:** Added Android `MMKV.initialize()` without an explicit Context using AndroidX App Startup. Explicit Context initialization remains available.\r\n\r\n### iOS/macOS\r\n* **Fix:** Made `enumerateKeys:` safe when callbacks read expired values.\r\n* **Feature:** Added `enumerateNonExpiredKeys:` to filter expired keys at the start of enumeration.\r\n\r\n### HarmonyOS NEXT\r\n* **Fix:** Validated ArrayBuffer slice ranges, backing-buffer bounds, and typed-array alignment before accessing memory.\r\n\r\n### Flutter\r\n* **Fix:** Prevented an Android plugin detach crash when `libmmkv.so` is unavailable for the device ABI ([#1687](https://github.com/tencent/mmkv/pull/1687)).\r\n\r\n### POSIX/Linux\r\n* **Fix:** Completed short and interrupted file-copy operations, including Linux `sendfile()` transfers.","is_prerelease":false},"readme":true,"readme_zh":true,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}