Commit Graph

2537 Commits

Author SHA1 Message Date
Vladimir Mihailenco 8b2a7107ee
Merge pull request #1718 from monkey92t/golangci
upgrade golangci-lint to v1.39.0
2021-04-08 09:55:56 +03:00
monkey a2410beb43 upgrade golangci-lint to v1.39.0
Signed-off-by: monkey <golang@88.com>
2021-04-08 14:44:31 +08:00
Vladimir Mihailenco 085647a59e
Merge pull request #1717 from wangtuanjie/master
Cmdable interface: add XInfoConsumers method
2021-04-08 08:50:11 +03:00
wangtuanjie 5b4bc5cab5 Cmdable interface: add XInfoConsumers method 2021-04-06 22:13:34 +08:00
Vladimir Mihailenco 1e30221353 Rename GetEX to GetEx to better distinguish from XX and NX suffixes 2021-03-27 17:22:10 +02:00
Vladimir Mihailenco 2be507f8e7
Merge pull request #1711 from monkey92t/add-cmd
add cmd(getex / getdel / hrandfield / zrandmember)
2021-03-27 17:14:30 +02:00
monkey e3ce4ea661 remove PERSIST, add unit tests to ensure the stability of ZRandMember and HRandField.
Signed-off-by: monkey <golang@88.com>
2021-03-27 17:49:55 +08:00
monkey e7dbdda439 add HRANDFIELD and ZRANDMEMBER commands
Signed-off-by: monkey <golang@88.com>
2021-03-27 10:37:44 +08:00
monkey cb1be727e3 add new cmd: getEX getDel
Signed-off-by: monkey <golang@88.com>
2021-03-26 17:13:22 +08:00
Vladimir Mihailenco 55db07d5d1
Merge pull request #1703 from go-redis/feature/workflow
Replace travis with workflows
2021-03-23 11:25:14 +02:00
Vladimir Mihailenco 02a9c81ef1 Fix golangci-lint check 2021-03-23 11:02:29 +02:00
Vladimir Mihailenco e3c1e884eb Replace travis with workflows 2021-03-23 10:29:15 +02:00
Vladimir Mihailenco 1b77706c0c Optimize Otel instrumentation 2021-03-20 10:01:48 +02:00
Vladimir Mihailenco 7c5bbc37bd Add BenchmarkSetGoroutines 2021-03-20 09:34:25 +02:00
Vladimir Mihailenco a3cd07dab0
Merge pull request #1699 from openset/patch-1
Add StringCmd.Bool()
2021-03-17 13:39:13 +02:00
Shuo 785fa3295c
Add StringCmd.Bool() 2021-03-17 15:50:02 +08:00
Vladimir Mihailenco 7ba7ac4a7f
Merge pull request #1696 from monkey92t/test_error
fix test error
2021-03-16 09:23:28 +02:00
Vladimir Mihailenco a9989a3078 Add a link to discussions 2021-03-14 11:49:48 +02:00
monkey e839f8e764 fix test warn, the setex command does not support milliseconds
Signed-off-by: monkey <golang@88.com>
2021-03-13 23:07:57 +08:00
monkey e722f52cf8 fix "should Object" test error
Signed-off-by: monkey <golang@88.com>
2021-03-13 18:40:04 +08:00
Vladimir Mihailenco f63e0d666b
Merge pull request #1693 from monkey92t/sentinel
discoverSentinels read the addr field incorrectly
2021-03-13 09:09:02 +02:00
monkey c25daee5e6 discoverSentinels read the addr field incorrectly
Signed-off-by: monkey <golang@88.com>
2021-03-12 23:20:58 +08:00
Vladimir Mihailenco 573638ff0c Unexport helper command 2021-03-12 16:08:58 +02:00
Vladimir Mihailenco d47e48f8ab
Merge pull request #1692 from monkey92t/test_error
fix test error
2021-03-12 16:04:51 +02:00
monkey af3827aeab fix test error
Signed-off-by: monkey <golang@88.com>
2021-03-12 19:06:11 +08:00
Vladimir Mihailenco 250f81bf06
Merge pull request #1685 from BenjaminPrieur/master
Add ZMScore cmd
2021-03-08 15:33:19 +02:00
Benjamin Prieur abb58ff31f Add ZMScore cmd 2021-03-08 10:09:34 +01:00
Vladimir Mihailenco 7633aded81
Merge pull request #1688 from monkey92t/data_race
fix ring test `Process hook` data race
2021-03-08 10:51:28 +02:00
monkey 4a7d03359b add miss Pipeline and TxPipeline
Signed-off-by: monkey <golang@88.com>
2021-03-07 17:34:40 +08:00
monkey 783725f3f7 fix ring test `supports Process hook` data race
Signed-off-by: monkey <golang@88.com>
2021-03-07 17:10:19 +08:00
Vladimir Mihailenco f3a31a3e2c
Merge pull request #1684 from go-redis/fix/lazy-reload-context
Don't accept context in lazy reload
2021-03-05 14:14:32 +02:00
Vladimir Mihailenco b267a03f18 Don't accept context in lazy reload 2021-03-05 13:53:15 +02:00
Vladimir Mihailenco bed6d24273 go mod tidy 2021-03-05 13:19:16 +02:00
Vladimir Mihailenco 097b94a797
Merge pull request #1680 from lhchavez/add-setargs-to-pipeliner
Make SetArgs available to Pipeliner
2021-03-04 08:34:16 +02:00
Vladimir Mihailenco 1564bc6553
Merge pull request #1679 from lawmatsuyama/master
change otel/label to otel/attribute
2021-03-04 08:25:19 +02:00
lhchavez 4ffcd9b7f6 Make SetArgs available to Pipeliner
SetArgs is amazing! It would be even more amazing to be able to use it
within a non-transactional Pipeline.
2021-03-03 19:24:29 -08:00
lawmatsuyama dd7fefe738 change otel/label for otel/attribute 2021-03-03 22:43:10 -03:00
Vladimir Mihailenco aaed549e26 Merge branch 'master' of github.com:go-redis/redis 2021-03-01 18:16:57 +02:00
Vladimir Mihailenco 3de820e36d Add banner 2021-03-01 18:16:55 +02:00
Vladimir Mihailenco 9b4cabeba3
Merge pull request #1675 from monkey92t/test_error
fix unit test errors that may appear in pool_test.go
2021-03-01 16:49:55 +02:00
monkey 7d2e85eff6 only set opt.IdleTimeout in It("reuses connections")
Signed-off-by: monkey <golang@88.com>
2021-03-01 16:45:35 +08:00
Vladimir Mihailenco 491b007809 Add utm 2021-02-25 17:58:15 +02:00
monkey 42b2a72e66 fix unit test errors that may appear in pool_test.go
/redis/pool_test.go:119 Expected: <uint32>: 98 to equal: <uint32>: 99

Signed-off-by: monkey <golang@88.com>
2021-02-25 17:41:44 +08:00
Vladimir Mihailenco 00eeb1cb09
Merge pull request #1672 from monkey92t/test_error
solve possible unit test errors in ring_test.go
2021-02-25 09:03:53 +02:00
monkey f4ae0ba02b solve possible unit test errors in ring_test.go
/redis/ring_test.go:560, Expected: <int>: 10, to equal: <int>: 9
/redis/ring_test.go:560, Expected: <int>: 1, to equal: <int>: 0

Signed-off-by: monkey <golang@88.com>
2021-02-25 11:43:41 +08:00
Vladimir Mihailenco e5cde8f9a7 Update dependencies 2021-02-19 09:45:29 +02:00
Vladimir Mihailenco 61680f373c Tweak API 2021-02-17 15:12:10 +02:00
You Den 7b7f9d6e0e
Add SetArgs command (#1662)
* Add SetWithArgs command

* Add tests for SetWithArgs command

* Replace Makefile stable version by 6.2-rc3 version

* Increase threshold because there are more commands

* Reduce the SetWithArgs command doc comment

* Rename SetWithArgs to SetArgs

* Rename ExpireAt to TTL

* Add KeepTTL field

* Add ExpireAt field as time.Time type

* Improve comments readability

* Add more tests for ExpireAt field

* Fix typo

* Fix multiple if/else chain lint error
2021-02-17 14:48:47 +02:00
Vladimir Mihailenco 9467d5673b
Merge pull request #1665 from 0xc0d/master
Update OpenTelemetry to 0.17.0 and fix "undefined: otel.Meter"
2021-02-17 12:14:30 +02:00
alijozi 1f32092a3b Update OpenTelemetry to 0.17.0 and fix "undefined: otel.Meter" 2021-02-16 11:38:55 +01:00