Commit Graph

119 Commits

Author SHA1 Message Date
guoling a7d70e187a NameSpace works on POSIX 2025-01-07 20:32:36 +08:00
tulip 068ca225ef feat: fix the link error on armv8.
fix "unknown reference crc32" link error on armv8.
2025-01-04 11:53: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 6622c083b6 use PRId64 & PRIu64 to format 64 bit integer 2024-06-28 14:54:20 +08:00
guoling 38efa640da fix gcc compile error 2024-06-28 14:46:27 +08:00
guoling 08627bf8bd move python out of POSIX, prepare for Win32 support #1289 #1302 2024-06-27 18:16:58 +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 5a350d7ebf etc -> etc. 2024-04-29 16:26:07 +08:00
guoling 4f88f3260a update doc about set<!MMKV_SUPPORTED_VALUE_TYPE<T>>() 2024-04-29 15:29:52 +08:00
guoling 346e8f0f40 fix some testcase error 2024-04-29 14:32:37 +08:00
guoling 977a93fa09 almost done add vector<T> encode/decode support 2024-04-29 14:25:18 +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 416ed6ce90 fix linux compile error #1281 2024-04-26 18:26:10 +08:00
tulip 5403cea874 feat: use the embedded libz when libz cannot be found. 2024-03-31 19:03:04 +08:00
tulip 43f4c30fc3 Fix cgo cannot find functions reference when turn on "MMKV_DISABLE_CRYPT" 2023-12-26 00:16:17 +08:00
guoling 1c259bf62c test removeStorage() on Python 2023-12-06 15:39:40 +08:00
guoling c9549b6635 test removeStorage() on Golang 2023-12-06 15:21:23 +08:00
guoling e7322d8cee test removeStorage() on POSIX 2023-12-06 13:29:41 +08:00
guoling 557aaf6821 add clearAll(keepSpace:) & CompareBeforeSet for python 2023-11-16 16:19:33 +08:00
guoling 697128fc86 add ClearAllKeepSpace() for golang 2023-11-16 15:58:24 +08:00
guoling c1d5874f57 add CompareBeforeSet for golang 2023-11-16 15:48:26 +08:00
lishaokai eb9d8c1497 add clearAll with keeping file disk space 2023-10-08 14:07:13 +08:00
lishaokai 347b25feaa redo ftruncate file to its previous size when zeroFillFile fails(disk full) #1180 2023-09-26 17:53:29 +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
lishaokai e0f5321a9a override from beginning of file when dict is empty 2023-08-28 17:42:12 +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
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 b08b9b17fd add filterExpire param for count() & keys() for Python 2023-08-10 17:30:58 +08:00
guoling 60cd3ab5d7 tidy 2023-08-10 17:18:04 +08:00
guoling d8574567c0 add testcase on count() & allKeys() for POSIX 2023-08-10 17:17:48 +08:00
guoling 7b02656c64 add CountNonExpiredKeys() & AllNonExpireKeys() for golang 2023-08-10 16:59:51 +08:00
guoling 2f0b36efb2 add auto-key-expiration for Python 2023-05-26 20:06:34 +08:00
guoling 5a60f03196 add auto-key-expiration for golang 2023-05-26 19:32:40 +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 3bf119f579 fix compile error on Linux 2023-05-24 19:58:32 +08:00
guoling 927d95fd68 add auto-expiration testcase for POSIX 2023-05-24 19:50:57 +08:00
guoling 3e3bb8f6bb fix warning on some compiler #1077 2023-05-16 10:52:11 +08:00
tulip 935c512da5 feat: fix max length of C.struct_GoStringWrap array 2023-02-11 15:43:35 +08:00
guoling 057d8719f8 update Python code about initialize() with logHandler 2022-09-20 11:41:53 +08:00
guoling cc233a6fe3 update POSIX test code about initialize() with logHandler 2022-09-20 11:17:09 +08:00
guoling de001c46fe move log handler forward into InitializeMMKVWithLogLevelAndHandler() & deprecate RegisterLogHandler() on golang #949 2022-09-20 10:59:20 +08:00
guoling ee2e0672c1 move log handler forward into initialize() & deprecate registerHandler() on Android #949 2022-09-19 20:29:31 +08:00
guoling 3e6e17323f fix golang gcc compiler error #939 2022-08-19 14:32:24 +08:00