Commit Graph

156 Commits

Author SHA1 Message Date
guoling f2fa428bf6 NameSpace works on Win32 2025-01-13 12:14:59 +08:00
guoling a7d70e187a NameSpace works on POSIX 2025-01-07 20:32:36 +08:00
guoling d26fa06b2e remove guardForBackgroundWriting() for we are iOS 13+ 2025-01-06 15:58:04 +08:00
guoling d069d7c56a NameSpace for Android complete 2025-01-06 15:58:03 +08:00
guoling 147f89dba7 migrate legacy mmap ID to normal ID 2025-01-06 15:58:01 +08:00
guoling fca2582343 fix tryAtomicRename() with src == dst bug 2025-01-06 15:55:51 +08:00
guoling 89b56922e8 1. NameSpace almost work on iOS
2. Upgrade to iOS 13, watchOS 6
3. Dont mkPath() on ReadOnly mode
2025-01-06 15:54:38 +08:00
guoling 0bd466efe3 support correct filename on custom root path 2024-12-24 19:29:07 +08:00
guoling e5ca354c26 fix typo in shared_unlock() #1428 2024-11-12 16:20:59 +08:00
guoling 8b8188d536 add log & error & content change callback for flutter & ArtTS 2024-09-12 18:50:33 +08:00
guoling 6688793f59 check getMMKVWithID result and throw exception #1399 2024-09-09 20:43:06 +08:00
guoling 47d3c0893a add readonly support 2024-09-06 19:44:11 +08:00
guoling 2183260881 fix set empty string/bytes value not working on auto key expire 2024-06-28 15:35:12 +08:00
guoling c7d00a8382 clang-tidy 2024-05-11 15:29:49 +08:00
guoling 9341e03e19 make C++20 optional 2024-05-07 16:43:18 +08:00
guoling 9e8c30d7cb also support std::span<> 2024-05-06 17:54:17 +08:00
guoling 8b8852479b support encoding string_view 2024-04-29 18:05:44 +08:00
guoling b990c2bd14 prepare to add vector<T> encode/decode support 2024-04-28 18:49:34 +08:00
guoling db61c3ea60 fix typo 2024-04-28 15:43:13 +08:00
guoling 03ce05705c tidy include 2024-04-10 21:38:51 +08:00
guoling 0187c37e48 tested ohos backup & restore 2024-04-10 21:21:11 +08:00
guoling 48d45c5bc4 stash for ohos backup & restore, almost done 2024-04-10 21:06:57 +08:00
guoling cd3db0cfc5 assume all ohos armv8 devices have aes+crc32 instr 2024-04-03 10:46:05 +08:00
guoling 92d0a17d82 add back lazy-load on mmkv init 2023-12-25 16:46:58 +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
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 a49ca62e60 add comment about mlock() 2023-09-19 18:42:00 +08:00
guoling 1107f99170 turn-off mlock() protection in background on iOS 13+ 2023-09-19 18:34:08 +08:00
guoling 95c09496dd opt iOS auto clean 2023-09-19 18:11:25 +08:00
guoling 34411268da add catch(...) for each try-catch 2023-09-19 15:04:23 +08:00
Guo Ling b726545a83 Merge pull request #1168 from kaitian521/dev2
in place modification for getString to speed up
2023-09-06 16:21:16 +08:00
Lishaokai 7649e45d70 in place modification for getString to speed up 2023-09-06 15:59:37 +08:00
Guo Ling 5691842d42 Merge branch 'dev' into avoid-move 2023-09-04 19:53:26 +08:00
Marc Rousavy 3ebb422dde fix: Prevent moving a temporary object (input.readData()) 2023-09-04 13:49:44 +02: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 62a3f6af41 tidy once_control 2023-08-23 11:05:48 +08:00
guoling b71885713a add back GetAppleMachineInfo() 2023-08-23 11:03:14 +08:00
kaitian521 5c88ea604b Merge branch 'dev' into dev 2023-08-11 21:32:26 +08:00
Lishaokai 73f01e5d50 set expected capacity for file length when init #1114 2023-08-11 21:23:12 +08:00
guoling 6734567f8a never close MetaFile on clearMemoryCache() #1117 #1061 2023-08-11 12:49:42 +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 a2757975b0 rollback lazy load as many reported ANR 2023-05-26 15:32:41 +08:00
guoling 3bf119f579 fix compile error on Linux 2023-05-24 19:58:32 +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 3e3bb8f6bb fix warning on some compiler #1077 2023-05-16 10:52:11 +08:00