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
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
HK40404
04d118c80c
bugfix: Runtime error will happen in RemoveAllByVal() if iter.remove() removes quicklist's last page (it happens when last page has only one item) and the quicklist is not empty. In this case, iter.atEnd() will be false, which will cause a nil pointer dereference.
...
Solution: If iter.remove() remove last item, let it meet iter.atEnd().
2023-08-21 19:34:14 +08:00
damonslh
96a37cc7cb
add zlexcount, zremrangebylex, zrankbylex, zrevrankbylex to zset
2023-06-15 20:55:15 +08:00
finley
74421ba3f2
Merge branch 'feat/raft'
...
# Conflicts:
# cluster/cluster.go
# cluster/router.go
# config/config.go
# database/database.go
# database/server.go
2023-06-11 13:25:41 +08:00
finley
bf7f628810
raft cluster
...
wip: raft does not care about migrating
wip: optimize code
wip: raft election
wip
wip: fix raft leader missing log entries
wip
fix a dead lock
batch set slot route
wip: raft persist
wip
refactor cluster suite
remove relay
rename relay2
refactor: allow customizing client factory
test raft
refactor re-balance
avoid errors caused by inconsistent status on follower nodes during raft commits
test raft election
2023-06-10 22:48:24 +08:00
finley
a266cc5aba
optimize set inter,union,diff
2023-05-08 23:41:10 +08:00
Eriri
6a7fb6a692
fix error test in concurrent_test.go
2023-05-08 23:13:28 +08:00
Eriri
388fdabd7f
Modify the implementation of database RWLocks and RWUnLocks
2023-05-08 22:15:49 +08:00
226Charles
7c8eee4b2d
fix concurrent_test Error
2023-04-25 19:52:02 +08:00
finley
0e6d1ecf2e
bug fix: concurrent dict for each
2023-03-07 08:08:21 +08:00
finley
7f6edf817e
fix tiny bugs
2023-02-20 22:43:45 +08:00
finley
85ce68768a
bug fix: bit map for each bit
2023-02-08 22:36:12 +08:00
luqinwen
fe20c6c9e1
bugfix:convert the range of k from [1,17] to [1,16]
2023-02-08 14:55:34 +08:00
shining-brain
f255fac7fb
addCount should only be executed when there is data insertion
2022-11-24 13:55:29 +08:00
kaniu
122d6ba505
Bug fix : ZPOPMIN command.
...
Fixed the error caused by incorrect "boder" pass value.
And added a simple unit test to verify correctness.
2022-11-24 13:55:04 +08:00
Tianyi Zheng
672f0571ca
refactor: fix variable names & remove unnecessary type conversion
...
- the name of the variable "shard" has been defined, and change variable "shard" `s name in the function to avoid the case of "Variable Shadowing"
- remove unnecessary type conversion "uint32(hashCode)"
2022-11-15 19:11:19 +08:00
zhengtianyi
fe07c8ce39
perf: shorten lock time & optimize map`s value type
...
- shorten the lock time of concurrent.go`s function "Put"
- slightly optimize the value`s type of map concurrent.go`s function "RandomDistinctKeys" & avoid duplicate input the same map`s key
fix: uses the provided seed value to initialize the function rand, for fixing the generation of the same int in the case of multiple executions.
Limited ability, make it better~
2022-11-09 22:18:12 +08:00
finley
b93d74d5a7
optimize randomLevel
2022-11-05 21:12:50 +08:00
kaniu
66ac97103e
slightly optimize lock_map RWLocks.
...
"writeLocks" don't need to be sorted,and the index can be added into the "writeIndexSet" directly.
2022-11-02 21:22:49 +08:00
finley
dddf9a8f6b
zpopmin
2022-08-21 06:00:21 +08:00
finley
9da335811f
tiny fixes
2022-08-20 23:25:26 +08:00
kun98
23a6f95c18
bugfix
2022-08-17 11:35:22 +08:00
finley
e6d958716d
quick list
2022-07-31 02:07:45 +08:00
hdt3213
0da9c96a3b
support bitmap
2022-04-30 19:03:32 +08:00
hdt3213
38001a2d18
go lint
2021-11-08 23:24:43 +08:00
hdt3213
e91294bcf4
multi database
2021-09-05 18:57:02 +08:00
pengyejun
a34d6d7e55
Fix:sortedset Add()有bug #26
2021-07-15 10:29:31 +08:00
Yejun_Peng
a4cfd87a44
optimize logic of linkedlist
2021-07-06 19:51:23 +08:00
liyuxing
453fef5de1
ConcurrentDict Remove add decreaseCount
2021-07-01 13:27:52 +08:00
hdt3213
ef5639f40b
fix comments and readme
2021-06-15 01:14:41 +08:00
hdt3213
67c385ee4a
support multi transaction
2021-06-15 01:03:13 +08:00
hdt3213
6ee2789d6f
optimize locks for sinterstore/sunionstore/sdiffstore
2021-05-27 22:06:57 +08:00
hdt3213
97d7b84276
go lint
2021-05-13 08:56:07 +08:00
hdt3213
55ada39252
add go reference
2021-05-11 22:48:06 +08:00
hdt3213
fc39150740
add some unittest
2021-05-07 00:11:16 +08:00
hdt3213
f1ab47bd83
add unittest for cluster
2021-05-04 20:51:55 +08:00
hdt3213
9f3ac88b36
add some unittests and bug fix
2021-05-02 18:48:44 +08:00
hdt3213
f29298cc68
refactor project structure
2021-05-02 14:54:42 +08:00