Commit Graph

75 Commits

Author SHA1 Message Date
guoling 3561cee217 rename macro with MMKV prefix to avoid conflict #1215 2023-12-29 11:13:47 +08:00
guoling 962cf09f9c test removeStorage() on Win32 2023-12-06 16:06:00 +08:00
guoling d3c9e6af28 add removeStorage() 2023-12-06 12:25:35 +08:00
guoling 33b4f108c6 make override much more robust & efficient #1151, #1160 2023-12-01 17:09:05 +08:00
guoling 02e07a7c2b make expectCapacity more consistent 2023-11-21 19:43:32 +08:00
guoling c1d5874f57 add CompareBeforeSet for golang 2023-11-16 15:48:26 +08:00
Guo Ling 38259ee936 Merge pull request #1183 from kaitian521/fix_crash
add clearAll with keeping file disk space
2023-10-09 11:04:54 +08:00
lishaokai eb9d8c1497 add clearAll with keeping file disk space 2023-10-08 14:07:13 +08:00
guoling 95c09496dd opt iOS auto clean 2023-09-19 18:11:25 +08:00
lishaokai 72b59356a9 compare value before set/encode for the same key 2023-09-12 20:36:10 +08:00
Lishaokai 7649e45d70 in place modification for getString to speed up 2023-09-06 15:59:37 +08:00
Guo Ling bdf434db96 Merge pull request #1151 from kaitian521/dev
Do not append to file when dic.size()==1 && new key in dict #1150
2023-08-24 10:39:39 +08:00
Lishaokai c962b68934 Do not append to file when dic.size()==1 && new key in dict 2023-08-23 11:23:58 +08:00
guoling b71885713a add back GetAppleMachineInfo() 2023-08-23 11:03:14 +08:00
Lishaokai 73f01e5d50 set expected capacity for file length when init #1114 2023-08-11 21:23:12 +08:00
lishaokai 0617e46f7b Avoid of unnecessary msync when inserting key-value for the first time #1109 2023-07-12 17:57:01 +08:00
guoling 6fee34fae7 add filterExpire param for count() & allKeys() #1096 2023-06-20 14:29:34 +08:00
guoling 852ea1e6c8 add Expire constant 2023-05-26 17:25:20 +08:00
guoling 16b666fe2c add MMKV::NeverExpire for C++ interface 2023-05-26 15:47:41 +08:00
guoling 10b98c06cd fix POSIX compile error 2023-05-24 19:24:18 +08:00
guoling c9f1d7aa92 support auto key expiration: works on iOS 2023-05-24 17:46:46 +08:00
guoling c3a7af9fee move log handler forward into initMMKV & deprecate registerHandler on iOS #949 2022-09-19 16:50:25 +08:00
Marc Rousavy 781586db67 Use OUT define for better function signature 2022-01-28 10:45:59 +01:00
Marc Rousavy 5ab8f23f0a feat: hasValue out parameter 2022-01-28 10:42:24 +01:00
guoling 3c73b8b2f8 backup & restore works on Win32 2021-09-24 21:50:20 +08:00
guoling a813ae8fd9 backup & restore with customize rootPath works on Android 2021-09-18 15:22:11 +08:00
guoling 8e979910d0 backup & restore works on Android 2021-09-17 17:47:57 +08:00
guoling d0a714eb69 lock g_instanceLock while backup special MMKV 2021-09-15 22:03:04 +08:00
guoling 5c75525d8a restore works on iOS 2021-09-14 17:48:43 +08:00
guoling 87b1b0d018 backup works on iOS 2021-09-13 21:30:30 +08:00
guoling d5160def4f add pseudo code for backup & restore on iOS, not tested yet 2021-09-10 22:06:13 +08:00
guoling d88bcdeb6a Fix 'empty string = null' bug on flutter of Android 2021-05-07 16:54:40 +08:00
guoling 49eb55d99a update doc for isFileValid() #608 2021-01-12 16:10:13 +08:00
guoling 154a43c136 add callback handler for Python 2020-09-01 18:53:52 +08:00
guoling d7d4236c00 Python bind on POSIX platform almost done 2020-08-31 19:03:52 +08:00
guoling 61ba357a8f auto clean up for iOS 2020-07-15 18:08:12 +08:00
guoling 00552f4ffa add multi-process mode check for Android 2020-07-10 18:12:36 +08:00
guoling 8f20ae1846 rename relativePath to rootPath 2020-07-02 17:45:04 +08:00
guoling 74be762dc8 add MMKV_DISABLE_CRYPT preprocess directive 2020-07-01 18:12:00 +08:00
guoling 1d262bb195 hide KeyValueHolder from public header 2020-06-30 18:23:25 +08:00
guoling 89f04a0683 tidy 2020-06-28 16:22:00 +08:00
guoling 03dd58a3fd tidy iOS stuff 2020-06-19 21:01:18 +08:00
guoling 63cb806a03 tidy 2020-06-19 20:26:27 +08:00
guoling ffc70108ad fix some encrypt bug & drop iOS 8 2020-06-18 18:13:00 +08:00
guoling b715d7bcf8 reKey 2020-06-18 00:13:14 +08:00
guoling 0ad815fc5c encrypt & decrypt almost done 2020-06-17 20:44:56 +08:00
guoling 305bbca60d aes decrypt almost done 2020-06-16 21:48:18 +08:00
guoling 70fdd0e355 avoid memory copying when encoding string & buffer 2020-06-11 16:20:23 +08:00
guoling 954ce43a76 opt existing keys 2020-06-10 18:37:55 +08:00
guoling 524df11448 finish read, prepare for write 2020-06-09 22:22:53 +08:00