Commit Graph

102 Commits

Author SHA1 Message Date
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
Sky 95731c5d01 Update libmmkv_python.cpp 2022-04-13 12:05:50 +08:00
Sky d6270e768a Update libmmkv_python.cpp
fix an error about function's signature that is not match in libmmkv_python.cpp and MMKV.h
2022-04-12 12:31:18 +08:00
guoling d8ad804a1f prepare for v1.2.12 2022-01-17 12:44:41 +08:00
guoling 9b3af490e2 upgrade CMake requirement to 3.10 2021-10-22 22:27:00 +08:00
guoling 73131376bb upgrade mmkv for Python to v1.2.11 2021-10-22 22:23:15 +08:00
guoling 253a59a473 add backup & restore to Python 2021-10-22 22:17:25 +08:00
guoling 26cdaacc30 upgrade pybind11 to v2.8.0 to solve some crash 2021-10-22 22:16:42 +08:00
guoling 1e9a03bc07 add back & restore interface to golang 2021-10-22 20:52:09 +08:00
guoling d0493ec2e3 fix compile error on Linux 2021-09-18 18:32:59 +08:00
guoling 9c0de2dcc9 backup & restore works on POSIX 2021-09-16 20:19:24 +08:00
guoling 720b172b0b format 2021-09-15 16:53:18 +00:00
guoling ec39f75fd6 fix compiler error & sem_open() error on FreeBSD 2021-09-15 16:41:19 +00:00
guoling d3545e1fdb avoid some cmake check fail due to cross-compiler 2021-09-08 21:11:17 +08:00
guoling d8416b5b4f add Pointer() & Length() for MMBuffer 2020-12-17 16:21:27 +08:00
guoling 40c6dafa8c add make install 2020-12-16 20:47:30 +08:00
guoling 3bcd82d41e add doc 2020-12-15 21:45:27 +08:00
guoling e6e8e2467e add MMBuffer & callback 2020-12-15 21:43:20 +08:00