1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-13 10:02:24 +03:00
Commit Graph

107 Commits

Author SHA1 Message Date
dovi
1cb0c09321 RENAMENX clean code 2023-05-03 14:29:40 -04:00
dovi
485a4f3adc fix RANDOMKEY spec 2023-05-03 14:26:25 -04:00
dovi
7d963a5d1b fix OBJECT_REFCOUNT spec 2023-05-03 14:21:37 -04:00
dovi
3ab6241656 fix OBJECT_IDLETIME spec 2023-05-03 14:18:15 -04:00
dovi
1a7d5ff8e4 fix OBJECT_FREQ spec 2023-05-03 14:15:42 -04:00
dovi
19cd6dc04a fix OBJECT_ENCODING spec 2023-05-03 14:12:31 -04:00
dovi
e85fa11e81 fix MOVE spec 2023-05-03 14:07:30 -04:00
dovi
d810ce644b fix KEYS spec 2023-05-02 20:22:11 -04:00
dovi
2ea068ac77 fix EXPIRETIME spec 2023-05-02 20:17:15 -04:00
dovi
fe1ae49a40 fix EXPIREAT spec 2023-05-02 20:13:27 -04:00
dovi
73994f243b fix EXPIRE spec 2023-05-02 20:06:31 -04:00
dovi
3dfea00318 fix COPY spec 2023-05-02 20:02:03 -04:00
dovi
ca90d51fb8 fix DEL spec 2023-05-02 19:52:28 -04:00
dovi
80ecd9e06a fix DUMP spec 2023-05-02 19:50:01 -04:00
dovi
6809365e98 fix EXISTS spec 2023-05-02 19:34:49 -04:00
dovi
98c1a1d235 fix ZREMRANGEBYSCORE 2023-05-02 18:35:33 -04:00
dovi
a280648e62 fix ZREMRANGEBYRANK 2023-05-02 18:19:54 -04:00
dovi
08040f9431 fix ZREMRANGEBYLEX 2023-05-02 18:11:08 -04:00
dovi
a5344946b6 fix ZRANGEBYLEX 2023-05-02 18:01:45 -04:00
dovi
28d8215b6d fix ZRANGEBYSCORE 2023-05-02 17:54:55 -04:00
dovi
31c91decec fix ZUNIONSTORE 2023-05-02 17:43:10 -04:00
dovi
d643134dce fix ZUNION 2023-05-02 17:43:05 -04:00
dovi
e1727d16a1 fix ZUNION 2023-05-02 17:27:57 -04:00
dovi
afa394e35d fix XSETID 2023-05-02 16:06:14 -04:00
dovi
449d9c40ae fix XTRIM 2023-05-02 15:40:00 -04:00
dovi
dd6b211db3 fix XDEL 2023-05-02 15:28:23 -04:00
dovi
ea87a6767f fix XACK 2023-05-01 19:20:45 -04:00
dovi
e58562be4d clean code 2023-05-01 19:08:14 -04:00
dovi
74caece450 fix XADD 2023-05-01 19:06:21 -04:00
Leibale
4304f4dba3 some more commands 2023-05-01 06:58:27 -04:00
Leibale
88333c01de some more commands 2023-04-30 10:33:05 -04:00
Leibale
53b9397a78 some more commands 2023-04-30 10:08:25 -04:00
Leibale
8d615e99ed wip 2023-04-27 19:17:11 -04:00
Leibale
ab3973aca3 wip 2023-04-27 18:41:32 -04:00
Leibale
53ac48f298 some tests 2023-04-27 17:43:29 -04:00
Leibale
1254ff7ebd wip 2023-04-26 18:04:27 -04:00
Leibale
e25bcff293 WIP 2023-04-26 13:32:10 -04:00
Leibale
b272f18818 some more commands, multi.exec<'typed'> 2023-04-24 19:50:58 -04:00
Leibale
39bcac6484 clean SET command 2023-04-24 12:40:22 -04:00
Leibale
9faa3e77c4 WIP 2023-04-23 07:56:15 -04:00
Leibale Eidelman
3b1bad2296 Add support for sharded PubSub (#2373)
* refactor pubsub, add support for sharded pub sub

* run tests in redis 7 only, fix PUBSUB SHARDCHANNELS test

* add some comments and fix some bugs

* PubSubType, not PubSubTypes 🤦‍♂️

* remove test.txt

* fix some bugs, add tests

* add some tests

* fix #2345 - allow PING in PubSub mode (remove client side validation)

* remove .only

* revert changes in cluster/index.ts

* fix tests minimum version

* handle server sunsubscribe

* add 'sharded-channel-moved' event to docs, improve the events section in the main README (fix #2302)

* exit "resubscribe" if pubsub not active

* Update commands-queue.ts

* Release client@1.5.0-rc.0

* WIP

* use `node:util` instead of `node:util/types` (to support node 14)

* run PubSub resharding test with Redis 7+

* fix inconsistency in live resharding test

* add some tests

* fix iterateAllNodes when starting from a replica

* fix iterateAllNodes random

* fix slotNodesIterator

* fix slotNodesIterator

* clear pubSubNode when node in use

* wait for all nodes cluster state to be ok before testing

* `cluster.minimizeConections` tests

* `client.reconnectStrategry = false | 0` tests

* sharded pubsub + cluster 🎉

* add minimum version to sharded pubsub tests

* add cluster sharded pubsub live reshard test, use stable dockers for tests, make sure to close pubsub clients when a node disconnects from the cluster

* fix "ssubscribe & sunsubscribe" test

* lock search docker to 2.4.9

* change numberOfMasters default to 2

* use edge for bloom

* add tests

* add back getMasters and getSlotMaster as deprecated functions

* add some tests

* fix reconnect strategy + docs

* sharded pubsub docs

* Update pub-sub.md

* some jsdoc, docs, cluster topology test

* clean pub-sub docs

Co-authored-by: Simon Prickett <simon@redislabs.com>

* reconnect startegy docs and bug fix

Co-authored-by: Simon Prickett <simon@redislabs.com>

* refine jsdoc and some docs

Co-authored-by: Simon Prickett <simon@redislabs.com>

* I'm stupid

* fix cluster topology test

* fix cluster topology test

* Update README.md

* Update clustering.md

* Update pub-sub.md

Co-authored-by: Simon Prickett <simon@redislabs.com>
2023-01-25 11:00:39 -05:00
Ananda
e75a5db3e4 Add CLIENT LIST command and fix CLIENT INFO (#2368)
* fix client info

* add client list

* fix key validation in transformClientInfoReply

* fix issue with field in CLIENT LIST reply

* clean code

* fix multimem

* fix qbufFree argvMem totMem multiMem

Co-authored-by: Leibale <me@leibale.com>
2023-01-25 10:52:59 -05:00
Ananda
63511e5b9b Add latency graph command (#2359)
* add latency graph command

* fix coding style

* Clean code

* use "enable-debug-command" is redis 7+ only

* Update LATENCY_GRAPH.spec.ts

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-18 12:55:38 -05:00
Brandon
aa75ee49c6 #2038 Resolve legacy mode hGetAll returning in the wrong format compared to v3 results (#2367)
* Ensure that transformReply is optionally passed through to commands in legacy mode within multi

* Execute transformReply on legacy #sendCommand

* Scope transform changes to hGetAll

* Extensible method of transforming legacy replies, expands RedisCommand interface

* check `TRANSFORM_LEGACY_REPLY` on client creation (rather then on command exec), add tests

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-18 12:54:29 -05:00
Vojtech Novak
f6093b7b0f fix: zero ttl is ignored (#2349)
* fix: zero ttl is ignored

* Update SET.ts

* Update SET.ts

Co-authored-by: Leibale Eidelman <me@leibale.com>
2022-12-15 12:04:13 -05:00
Kien Dang
2a8e11a51d Export SetOptions type in redis/client command (#2268)
* Export setOptions type

* Export setOptions type in commands

* Revert "Export setOptions type in commands"

* Export SetOptions type in redis client

* Export SetOptions type in @redis/client

* Fix lint
2022-09-21 17:05:16 -04:00
Roman Poleguev
e1c0580d65 Fix CLUSTER_NODES ipv6 address parsing (#2269) 2022-09-19 13:31:21 -04:00
Brandon Everett
ac032d82a0 fix: loop over arguments instead of spreading (#2160)
* fix: loop over arguments instead of spreading

* update to use concat

* use the returned array from pushVerdictArguments (instead of assuming it'll push to the original array)

* fix "Type 'RedisCommandArguments' is not assignable to type 'string[]'."

* fix "Argument of type 'RedisCommandArgument | RedisCommandArguments[]' is not assignable to parameter of type 'RedisCommandArgument | RedisCommandArgument[]'"

* fix "Type 'RedisCommandArguments' is not assignable to type 'string[]'"

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2022-07-13 07:01:35 -04:00
Ștefan Cenușă
f9f5e494dd fixed MIGRATE function when key is array (#2184)
* fix: 2163 push empty string as arg

* fix: updated migrate test with keys array
2022-07-07 14:33:58 -04:00
Tom Graham
82f43d9a53 Fix issue with buffers in objects using hSet (#2139)
* Fix issue with buffers in objects using hSet

When using hSet with an object, any buffer values inside the object are converted to strings instead of left as buffers.
This fix specifically handles the special case of buffers, whilst casting everything else strings (to continue "gracefully" handling the case where the value not a valid type).

* Update HSET.ts

* Update HSET.spec.ts

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2022-05-26 09:56:10 -04:00