MMKV is a mobile key-value storage framework developed by Tencent for the WeChat application. It targets Android, iOS, macOS, Windows, POSIX, and HarmonyOS platforms. The system utilizes memory-mapped files to synchronize data between memory and disk, and employs Protocol Buffers for value encoding and decoding. It provides an application programming interface that persists changes immediately without requiring explicit synchronization commands.
- Source Code
- https://github.com/Tencent/MMKV[01]
- Country of Origin
- CN
- Start Year
- 2018
- Project Type
- Open Source
- Written in
- C++
- License
- BSD License
MMKV is a mobile key-value storage framework developed by Tencent for the WeChat application. It targets Android, iOS, macOS, Windows, POSIX, and HarmonyOS platforms. The system utilizes memory-mapped files to synchronize data between memory and disk, and employs Protocol Buffers for value encoding and decoding. It provides an application programming interface that persists changes immediately without requiring explicit synchronization commands.
History
The project was initiated by Tencent's WeChat team to address performance constraints in existing mobile key-value storage implementations. It was publicly released and open-sourced in 2018. Subsequent development has focused on maintaining compatibility across supported operating systems, expanding platform support to include Windows, POSIX environments, and HarmonyOS, and optimizing the underlying memory-mapped file operations and serialization processes.