301 Commits

Author SHA1 Message Date
hu-qing-hua
f13d9cb9d6 add raft_test
add raft_test for package raft
2025-09-14 16:05:29 +08:00
hu-qing-hua
f169971ded fix logic risk errors in raft.go 2025-09-14 16:05:29 +08:00
bijingrui
e86948ab1e add slowlog command to cluster 2025-09-14 15:59:45 +08:00
bijingrui
de5e9130bd add slowlog related configurations 2025-09-14 15:59:45 +08:00
bijingrui
cb9ca3399b add slowlog and info command 2025-09-14 15:59:45 +08:00
finley
8da9a835c1 test and protect edge case 2025-07-05 20:40:27 +08:00
bijingrui
9c5ba74a3f 'slowlog-log-slower-than' and 'slowlog-max-len', have been added to the configuration file. 2025-07-05 20:40:27 +08:00
finley
8a81b9112a optimize migration; clean migrated data 2025-06-01 22:57:47 +08:00
finley
325ec10326 recover master slave relationship after restart 2025-06-01 22:31:58 +08:00
finley
2562ad10a0 comment for replication 2025-06-01 22:03:16 +08:00
finley
cf50e9429b document for configuration 2025-06-01 22:01:27 +08:00
finley
ebcda803a4 chores for cluster 2025-05-26 23:18:09 +08:00
finley
5f2698101e fix #250 2025-05-26 22:38:57 +08:00
finley
e5b8f2c6a2 update github actions go version 2025-05-25 21:32:31 +08:00
finley
d6bbf0315c refactor code structure for gnet 2025-05-25 21:06:50 +08:00
finley
144b642fe7 use gnet server for performance 2025-05-23 08:39:56 +08:00
finley
f4a2c92fc1 Support failover in cluster (experimental) 2025-05-05 18:26:10 +08:00
今晚打老虎
14ec8277ca optimize del in cluster 2025-04-30 16:16:16 +08:00
今晚打老虎
6640e6fad2 optimize multi LPop and RPop 2025-04-20 16:43:17 +08:00
今晚打老虎
5851e662e0 support count of LPop and RPop 2025-04-20 16:43:17 +08:00
今晚打老虎
fd26026618 fix bug of command HIncrByFloat 2025-04-17 17:45:57 +08:00
finley
04a472ebec bugfix: tcc holds lock status to prevent dead lock 2025-03-30 16:31:32 +08:00
finley
b9c65ef15d fix test suite 2025-03-30 16:01:32 +08:00
finley
efb6dd04b7 del in cluster 2025-03-23 22:09:43 +08:00
finley
afd06103cc renamenx in cluster 2025-03-23 21:51:07 +08:00
finley
ef4e09972c support rename in cluster 2025-03-23 21:34:59 +08:00
finley
23b70325f9 support msetnx in cluster by tcc pre-check hook 2025-03-23 20:44:13 +08:00
finley
5285717a2d support mget in cluster 2025-03-13 23:10:11 +08:00
finley
360de97479 support mset in cluster 2025-03-13 23:10:11 +08:00
finley
43dc28d335 WIP 2025-03-13 23:10:11 +08:00
Wwhds_one
341c16d065 fix issue #238 2025-03-04 22:48:45 +08:00
finley
187db2e908 fix test suits 2025-02-03 19:10:13 +08:00
finley
67a46bf432 fix test suite 2025-02-03 19:05:57 +08:00
finley
e0e29729e4 fix test suite 2025-02-03 18:57:33 +08:00
finley
2389a6ffb0 Merge commit '0bf068f51cb79170dddf8248f21cb4b540107711' 2025-02-03 18:42:03 +08:00
finley
0bf068f51c other cluster codes 2025-02-03 18:38:54 +08:00
finley
b699918223 raft cluster core 2025-02-03 18:38:47 +08:00
Erkan DURMUŞ
6aee2f91e3 exported logger.LogLevel 2025-01-13 10:36:16 +08:00
Erkan DURMUŞ
3197d82a9f converted DefaultLogger type to interface 2025-01-13 10:36:16 +08:00
Erkan DURMUŞ
c6dd5f0cb2 added timewheel concurrency support 2025-01-13 10:35:24 +08:00
lhpqaq
75030407cb Add sscan, hscan, zscan 2024-07-29 13:59:18 +08:00
lhpqaq
c1dd65d84f add scan command 2024-07-19 13:21:59 +08:00
文强
ff67ac3bb0 update: 解析RDB格式错误处理 2024-07-12 20:55:56 +08:00
bijingrui
0c6b0863f3 add dbsize command 2024-05-06 16:39:28 +08:00
NaNShaner
dd073b0645 bugfix: Fix the issue with the result format returned by the randomkey command 2024-05-04 16:28:15 +08:00
GongHongjun
43c378cd45 优化MultiBulkReply.ToBytes中内存分配的方式(提前分配);避免使用concatstrings和slicebytetostring以提高性能; 2024-03-26 10:44:57 +08:00
xuning
b6763a86fe bugfix: Use rounding to calculate TTL
The previous code calculated TTL directly by int64 / time.Second or int64 / time.Millisecond, which could result in a calculation error of up to 1s/1ms. Now, using math.Round ensures that TTL is rounded to the nearest whole second/millisecond, improving the accuracy of the calculation.
2024-03-26 10:41:51 +08:00
GouJie
b7b8ece442 bugfix: Resolved a concurrency issue with ClientCounter. Previously, directly decrementing ClientCounter in multiple goroutines (ClientCounter--) could lead to data races and inconsistencies. Now, by using atomic.AddInt32(&ClientCounter, -1), we ensure safe updates to the counter, maintaining its accuracy and stability even in high concurrency scenarios. 2024-02-14 20:55:33 +08:00
GouJie
b63deb62bd Modify unnecessary type conversions 2024-02-14 20:55:33 +08:00
GouJie
e4c9563776 Modify code comments 2024-02-14 20:55:33 +08:00