1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-15 12:41:41 +03:00
Commit Graph

2637 Commits

Author SHA1 Message Date
8d9ebc8459 Shuffle sentinel addrs once 2021-02-10 17:25:09 +02:00
8b19c31049 Make FailoverClient(sentinel mode) more robust (#1655)
* add failover option AllowDisconnectedSlaves

* checkout unrelated changes

* Make NewFailoverClient (sentinel mode) robust.

* fix lint issue

* Fix bug

* Fix lint issue

* add comment

* checkout unrelated changes

* Refine code

* checkout unrelated changes
2021-02-10 17:20:08 +02:00
f594401261 support "XINFO CONSUMERS" (#1649)
* support "XINFO CONSUMERS"

* add "xinfo" test
2021-02-09 14:46:26 +02:00
27df2313cd hscan adds support for i386 platform (#1652)
* hscan adds support for i386 platform

Signed-off-by: monkey <monkey92t@gmail.com>

* update go.sum

Signed-off-by: monkey <monkey92t@gmail.com>

* detect overflow of scan

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

* restore the return value type of decoderFunc to error

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

* fix clean

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

* fix clean

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

Co-authored-by: Monkey <monkey@MonkeydeiMac.local>
2021-02-09 14:44:24 +02:00
fd6fac1a1a Fix import path 2021-02-06 08:29:28 +02:00
89b72c9e2a Merge pull request #1654 from AdamKorcz/fuzz1
Fixed broken fuzzer
2021-02-06 08:27:07 +02:00
4a9b7ce79a Fixed broken fuzzer 2021-02-05 21:45:09 +00:00
89da47939e Move fuzz to a sub-package 2021-02-04 17:02:17 +02:00
0abfa60737 Merge pull request #1570 from AdamKorcz/fuzz1
Add fuzzer to integrate go-redis into OSS-fuzz
2021-02-04 17:01:12 +02:00
f8cbf483f4 Fix otel example v8.5.0 2021-02-04 10:38:54 +02:00
0a15359292 Disable renovate 2021-02-04 10:13:36 +02:00
5889315493 Merge pull request #1645 from go-redis/renovate/github.com-onsi-ginkgo-1.x
Update module onsi/ginkgo to v1.15.0
2021-02-04 09:56:41 +02:00
3a0e49ef36 Merge pull request #1599 from go-redis/renovate/go.opentelemetry.io-otel-sdk-0.x
Update module go.opentelemetry.io/otel/sdk to v0.16.0
2021-02-04 09:56:14 +02:00
a8503c1a29 Merge pull request #1598 from go-redis/renovate/go.opentelemetry.io-otel-0.x
Update module go.opentelemetry.io/otel to v0.16.0
2021-02-04 09:55:36 +02:00
06bd08cf17 Update module go.opentelemetry.io/otel to v0.16.0 2021-02-04 07:54:28 +00:00
2ffff4e169 Update module go.opentelemetry.io/otel/sdk to v0.16.0 2021-02-04 07:53:55 +00:00
2e725a9049 Merge pull request #1637 from go-redis/renovate/go.opencensus.io-0.x
Update module go.opencensus.io to v0.22.6
2021-02-04 09:52:09 +02:00
cc2ac5c8fb Merge pull request #1606 from go-redis/renovate/go.opentelemetry.io-otel-exporters-stdout-0.x
Update module go.opentelemetry.io/otel/exporters/stdout to v0.16.0
2021-02-04 09:51:13 +02:00
e93994cb28 Update module onsi/ginkgo to v1.15.0 2021-02-04 07:51:06 +00:00
7a0957a48d Merge pull request #1646 from go-redis/renovate/github.com-onsi-gomega-1.x
Update module onsi/gomega to v1.10.5
2021-02-04 09:50:36 +02:00
35f6ccd0bb Merge pull request #1631 from knadh/feat-decoder
Add redis.Scan() to scan results from redis maps into structs.
2021-02-04 09:49:03 +02:00
95272452d9 Merge branch 'feat-decoder' of github.com:knadh/redis into feat-decoder 2021-02-04 09:38:24 +02:00
b358584bd3 Fix build 2021-02-04 09:34:10 +02:00
f8a546b482 Add test for MGet/struct scan 2021-02-03 17:10:01 +05:30
bd234b91fe Add StructValue so we don't need temp slices to pass keys and values 2021-02-03 12:45:02 +02:00
600f1665a0 Add missing error checks and support for MGET in Scan() 2021-02-03 13:43:04 +05:30
e113512c18 Add example showing scanning to struct 2021-02-02 16:28:35 +05:30
f9dfc7a949 Refactor scan signature to work with Slice and StringMap cmds 2021-02-02 16:28:10 +05:30
a4144ea98e Add SliceCmd.Scan() (hscan pkg) and tests 2021-02-02 13:04:52 +05:30
62c15db5e3 Update module onsi/gomega to v1.10.5 2021-02-01 22:52:10 +00:00
d7b0326d14 Update module go.opencensus.io to v0.22.6 2021-01-29 18:44:33 +00:00
380ab17274 Fix cleanup 2021-01-29 12:12:47 +02:00
8926f2992a Cleanup 2021-01-29 12:04:39 +02:00
6f96bebac7 Add redis.Scan() to scan results from redis maps into structs.
The package uses reflection to decode default types (int, string
etc.) from Redis map results (key-value pair sequences) into
struct fields where the fields are matched to Redis keys by tags.

Similar to how `encoding/json` allows custom decoders using
`UnmarshalJSON()`, the package supports decoding of arbitrary
types into struct fields by defining a `Decode(string) error`
function on types.

The field/type spec of every struct that's passed to Scan() is
cached in the package so that subsequent scans avoid iteration
and reflection of the struct's fields.
2021-01-28 18:04:38 +05:30
bf010a705d Export scripter interface v8.4.11 2021-01-26 11:57:16 +02:00
99852af14d Increase timeout 2021-01-24 11:01:48 +02:00
4f34522c84 Enable pending test 2021-01-24 10:53:45 +02:00
b0ac2eefc3 Merge pull request #1617 from go-redis/feature/cluster-read-only
Fix ReadOnly option in ClusterClient
v8.4.10
2021-01-22 09:44:18 +02:00
e4b2ca97cd Fix ReadOnly option in ClusterClient 2021-01-22 09:33:09 +02:00
794e5c09aa Merge pull request #1615 from adriansmares/master
Ensure Watch closes the transaction on panic
2021-01-22 09:22:34 +02:00
4ceab0fee3 Ensure Watch closes the transaction on panic 2021-01-21 19:29:28 +02:00
7f8dfd0d42 Update module go.opentelemetry.io/otel/exporters/stdout to v0.16.0 2021-01-19 09:50:59 +00:00
a8e8bf1504 Bump otel v8.4.9 2021-01-19 11:49:05 +02:00
2113096ad8 Merge pull request #1601 from zikaeroh/fix-gomods
Fix broken otel example module, tidy
2021-01-19 11:48:33 +02:00
80e7515018 Update example module, tidy 2021-01-16 11:20:03 -08:00
aa456e55a7 Bump Go in go.mod v8.4.8 2021-01-10 09:19:45 +02:00
8f37eeba5d Merge pull request #1595 from forain/add-type-option-to-scan-command
Add ScanType command to Scan with 'type' option
v8.4.7
2021-01-09 16:25:13 +02:00
c2351b491a Add ScanType command to Scan with 'type' option
As of version 6.0 you can use this 'type' option to ask SCAN to only
return objects that match a given type, allowing you to
iterate through the database looking for keys of a specific type.
2021-01-09 09:20:35 -03:00
9481d69402 Merge pull request #1596 from go-redis/fix/tx-pipeline-hook
Fix Tx pipeline hook
v8.4.6
2021-01-09 10:30:36 +02:00
76fd0eac61 Fix Tx pipeline hook 2021-01-09 09:57:46 +02:00