Commit Graph

185 Commits

Author SHA1 Message Date
monkey92t 8ad01240a4
Add support for resp3 protocol (#1739)
* support resp3 protocol

Signed-off-by: monkey <golang@88.com>

* Upgrade mod version limit go1.14

https://github.com/go-redis/redis/issues/1715#issuecomment-820685614

Signed-off-by: monkey <golang@88.com>

* Remove the redundant check of ReadReply

Signed-off-by: monkey <golang@88.com>

* fix the problem

Signed-off-by: monkey <golang@88.com>

* workflows add v9

Signed-off-by: monkey <golang@88.com>

* update StringStringMapCmd to MapStringStringCmd

Signed-off-by: monkey <golang@88.com>
2021-04-27 10:04:46 +03:00
Shuo 785fa3295c
Add StringCmd.Bool() 2021-03-17 15:50:02 +08:00
Benjamin Prieur abb58ff31f Add ZMScore cmd 2021-03-08 10:09:34 +01:00
kkkbird f594401261
support "XINFO CONSUMERS" (#1649)
* support "XINFO CONSUMERS"

* add "xinfo" test
2021-02-09 14:46:26 +02:00
Vladimir Mihailenco bd234b91fe Add StructValue so we don't need temp slices to pass keys and values 2021-02-03 12:45:02 +02:00
Kailash Nadh 600f1665a0 Add missing error checks and support for MGET in Scan() 2021-02-03 13:43:04 +05:30
Kailash Nadh f9dfc7a949 Refactor scan signature to work with Slice and StringMap cmds 2021-02-02 16:28:10 +05:30
Kailash Nadh a4144ea98e Add SliceCmd.Scan() (hscan pkg) and tests 2021-02-02 13:04:52 +05:30
Vladimir Mihailenco a11b22fce9 Cleanup 2020-09-24 09:06:17 +03:00
Ilia Choly a2b0227421 feature: add XINFO STREAM support 2020-09-23 11:16:35 -04:00
Vladimir Mihailenco 86326c4924 Refactor NewXInfoGroupsCmd 2020-09-23 11:50:31 +03:00
Vladimir Mihailenco a32502b1d9 Cleanup 2020-09-23 10:29:13 +03:00
jamsonzan c89b69131d
fix: firstKeyPos cmdSlot (#1502)
* fix(xread):cmdSlot

Co-authored-by: zhangxinjian <zhangxinjian@crop.netease.com>
2020-09-23 10:22:11 +03:00
Vladimir Mihailenco c5d4b71f66 Fix race 2020-09-17 12:36:10 +03:00
GreenHedgehog 1a65d677b3
Fix not applying updated ClusterClient context after calling WithContext method (#1480)
pass context to command info cache init call
2020-09-14 15:30:50 +03:00
Vladimir Mihailenco dfae0ec28b Cleanup 2020-09-09 12:49:45 +03:00
wziww be9ae84c6f support for slowlog command 2020-09-09 12:36:25 +03:00
Vladimir Mihailenco 38c87c1f84 Fix golangci 2020-07-16 10:01:27 +03:00
Vladimir Mihailenco 14c843ef89 gofumports 2020-07-16 09:52:07 +03:00
Vladimir Mihailenco 6b9f61cf75 Merge pull request #1400 from alonana/master
handle memory usage command arguments
2020-07-09 11:56:30 +03:00
Alon Tamir c41cbf2756
handle memory usage command arguments
See https://github.com/redis/redis/issues/7493
We have to include a special handling for the memory usage command
2020-07-09 10:25:06 +03:00
Vladimir Mihailenco 8eed1e67ff Add OpenTelemetryHook 2020-06-09 17:17:41 +03:00
Vladimir Mihailenco 2e8ce55021 Fix Command parsing 2020-06-05 09:11:12 +03:00
y_uuki 949ccaed3a Support additional flags for ACL in CommandsInfo 2020-06-05 03:27:34 +09:00
Vladimir Mihailenco 4440575966 Merge branch 'v8' 2020-05-21 10:16:44 +03:00
Vladimir Mihailenco d2630e5ae9 Add Cmder.FullName 2020-05-19 08:52:38 +03:00
Vladimir Mihailenco 3031343dae Make cmd.String() faster 2020-05-19 08:52:38 +03:00
Vladimir Mihailenco 3dcb844106 Bump major version 2020-05-19 08:52:38 +03:00
Vladimir Mihailenco f5593121e0 Add ctx as first arg 2020-05-19 08:52:38 +03:00
theo-delaune-argus fea610f7b4 Store time in RFC3339Nano to keep nanoseconds 2020-03-13 17:48:33 +01:00
Vladimir Mihailenco 49a0c8c319 Add test for ring and cluster hooks 2020-02-14 14:30:40 +02:00
Vladimir Mihailenco 2e3402d33d Don't allocate tmp slice in txPipelineWriteMulti 2020-02-14 12:55:59 +02:00
git-hulk d52b11cb42 Exported the setErr function as public 2020-02-03 17:53:47 +08:00
Vladimir Mihailenco 4eb2debcdc Don't create empty map when value is missing 2020-02-02 10:48:23 +02:00
yeplato a8704c3bd0
let XReadGroup skip empty message and process next message (#1243)
* let XReadGroup skip empty message and process next message
2020-02-02 10:46:20 +02:00
Vladimir Mihailenco dab9d3f802 Cleanup 2019-11-19 12:37:26 +02:00
Vladimir Mihailenco eb64034d44
Merge pull request #1189 from WTIFS/master
Set key to lowercase in cmdsInfoCache.Get()
2019-11-19 10:53:00 +02:00
ferhat elmas b403828de2 Bump golangci-lint to v1.21.0 2019-11-18 18:46:13 +01:00
chenyuanfei b32ffae255 set key to lower for cmdsInfoCache.Get() 2019-11-12 15:08:59 +08:00
Vladimir Mihailenco f10f34eb29 Rename XGroup to XInfoGroups 2019-10-08 12:50:13 +03:00
saito d5b2eccbe2 add xinfo groups command (#1166)
Add xinfo groups command
2019-10-08 12:48:24 +03:00
Vladimir Mihailenco fd834aed2b Add Uint64 helper 2019-09-27 14:38:55 +03:00
Vladimir Mihailenco 5776216677 Cleanup 2019-08-24 11:55:13 +03:00
Vladimir Mihailenco 39b67358d7 Retry timeout by default 2019-08-12 15:20:27 +03:00
Vladimir Mihailenco f6fc23d2fa Move key to ZStore 2019-08-09 16:23:56 +03:00
Vladimir Mihailenco 191391d66d Add writing version of GeoRadius commands 2019-08-09 15:04:56 +03:00
Vladimir Mihailenco 2a46cb006d Add withConn and set cmd errors more consistently 2019-08-09 13:53:05 +03:00
Vladimir Mihailenco 7779accbea Use semantic import versioning 2019-08-08 14:29:44 +03:00
Vladimir Mihailenco f76700581d Use unsafe StringToBytes to speedup StringCmd.Bytes 2019-07-27 16:40:31 +03:00
Vladimir Mihailenco f3ce3362a0 Add golangci-lint 2019-07-25 14:36:50 +03:00
Vladimir Mihailenco 0e7fb3b12d Marshal time as RFC3339. Add StringCmd.Time helper. 2019-07-25 13:03:09 +03:00
Vladimir Mihailenco bbe0a59db3 Add basic BITFIELD support 2019-06-26 15:06:43 +03:00
Vladimir Mihailenco 17480c545e
Merge pull request #1040 from go-redis/feature/hook-new
Feature/hook new
2019-06-01 11:50:49 +03:00
Vladimir Mihailenco 8476dfea4a Replace Wrap* with hooks that support context 2019-05-31 16:36:57 +03:00
Vladimir Mihailenco c6b800e266
Merge pull request #1039 from go-redis/fix/ttl-1
Handle -1 in DurationCmd
2019-05-31 13:45:52 +03:00
Vladimir Mihailenco 685d8922de Pass pointers where it makes sense 2019-05-31 13:24:21 +03:00
Vladimir Mihailenco c208a17dfc Handle -1 in DurationCmd 2019-05-31 13:19:39 +03:00
Kirill Motkov eca4e5d04c Some code improvements
* Rewrite if-else chain as a switch.
* Rewrite switch statement with only one case as if.
* Remove always true condition.
* Simplify some functions.
2019-04-17 16:14:30 +03:00
sam-ke 94ec556725 Add Float32 helper 2019-04-10 15:31:43 +03:00
Roman Volosatovs 8527f5907e
Implement BZPop{Min,Max} 2018-11-02 18:07:01 +01:00
Vladimir Mihailenco 86155dcfb7 Fix typo 2018-08-27 08:29:25 +03:00
Vladimir Mihailenco 655336673b Add Int helper 2018-08-21 14:11:19 +03:00
Vladimir Mihailenco 0197108027 Use bufio.Writer 2018-08-17 14:14:02 +03:00
Vladimir Mihailenco 00de347403 Optimize reading big values 2018-08-16 14:01:03 +03:00
Vladimir Mihailenco 5146fb0c57 Cleanup buffers manipulation 2018-08-15 11:53:15 +03:00
Vladimir Mihailenco 7c26d1ceb6 Pass cn.Rd where possible 2018-08-15 09:38:58 +03:00
Vladimir Mihailenco fea1be3727 Replace client with redisdb in examples 2018-08-12 11:45:35 +03:00
Vladimir Mihailenco d5fc79d4ee Add Client.Do 2018-08-12 11:20:24 +03:00
Vladimir Mihailenco 96d1b85009 Cleanups 2018-08-06 13:59:15 +03:00
Vladimir Mihailenco b576fe91a1 Use single read and write buffer where possible 2018-08-04 13:09:22 +03:00
Kassian Sun 34916092ba Add streams group related commands 2018-08-02 15:24:53 +03:00
nicktylah 39bdfc3fa8 Add basic redis streams support 2018-06-23 16:44:12 +03:00
Vladimir Mihailenco 18b2e30835 Cleanup cmds info 2018-05-17 15:21:51 +03:00
Vladimir Mihailenco f13fc5381c Extract commands info cache 2018-03-07 12:09:45 +02:00
Vladimir Mihailenco 56dea1f39a Fix proto.RedisError in slices 2018-02-22 14:24:27 +02:00
Veselkov Konstantin ea4d6c3490 golint warnings are removed 2018-01-24 22:38:47 +04:00
Vladimir Mihailenco 3de5605ab2 Pick random node when command does not have keys 2017-12-28 16:47:08 +02:00
Crimson 7aa0130b2e Add SMembersMap function 2017-11-19 18:00:51 +01:00
Vladimir Mihailenco 2a5293c99c Export Cmder.Args 2017-09-26 11:29:22 +03:00
Vladimir Mihailenco dbd2c99ba9 Rework pipeline retrying 2017-09-01 14:56:00 +03:00
Vladimir Mihailenco cf6c6dca84 Add Geo commands read-only variants 2017-07-19 15:32:50 +03:00
Vladimir Mihailenco 6307b95039 Export Cmder.Name 2017-05-09 12:45:30 +03:00
Nykolas Laurentino de Lima bd29077241 Remove unnecessary code
Remove unnecessary if and return the value directly
2017-04-27 14:24:25 -03:00
Vladimir Mihailenco e737f3e6dd Fix publish command info 2017-04-12 13:00:20 +03:00
Vladimir Mihailenco 18dcec2144 Cleanup code 2017-03-24 13:33:35 +02:00
Vladimir Mihailenco bb270e3277 Merge branch 'v5' 2017-03-04 11:02:50 +02:00
Yin Jifeng 518c105169 StringCmd: remove an unnessary type casting
this fixes up 69554c0e
2017-03-01 22:41:18 +08:00
Vladimir Mihailenco 8040d63c4f Remove gopkg.in 2017-02-19 09:49:21 +02:00
Back Yu 681a1fe646 Add ScanSlice. 2017-02-18 11:49:01 +02:00
Vladimir Mihailenco ce4fd8b677 Fix ReceiveMessage to work without any subscriptions. 2017-02-08 14:15:32 +02:00
Vladimir Mihailenco 69554c0ec5 Reduce number of allocations. 2017-01-13 13:39:59 +02:00
Vladimir Mihailenco 10c56cede3 Remove Scanner in favor of ScanCmd. 2017-01-03 12:44:06 +02:00
Vladimir Mihailenco 865d501d07 Add TxPipeline. 2016-12-16 11:25:58 +02:00
zezhou.yu e916395f6c
evalsha with 0 key should return -1 pos 2016-12-08 01:29:17 +08:00
Vladimir Mihailenco b4efc45f1c Set read/write timeouts more consistently. 2016-12-03 17:30:13 +02:00
Vladimir Mihailenco a20665f042 Use string val in StringCmd. 2016-11-20 09:50:49 +02:00
Vladimir Mihailenco dcdf129dd5 Add TimeCmd. 2016-10-14 14:39:02 +03:00
Vladimir Mihailenco a65b760eec Lowercase command name. 2016-10-14 10:37:30 +03:00
Vladimir Mihailenco f5245efa73 Prepare v5 release. 2016-10-09 10:56:53 +00:00
Vladimir Mihailenco eeba1d7db1 Select random node when there are no keys. 2016-10-09 10:30:45 +00:00