1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-02 08:21:36 +03:00

2644 Commits

Author SHA1 Message Date
Nedyalko Dyakov
65c7ea8aa4
Merge branch 'master' into ndyakov/update-readme-discord 2025-04-23 10:48:14 +03:00
frankj
034a49f88a
fix: Fix panic caused when arg is nil (#3353) 2025-04-23 10:47:13 +03:00
Elena Kolevska
6e63b72f13
Merge branch 'master' into ndyakov/update-readme-discord 2025-04-22 22:42:23 +01:00
andy-stark-redis
f7780dddac
DOC-5111 added hash search examples (#3357) 2025-04-22 19:24:57 +03:00
Glenn
a7b4ce5e50
docs: fix documentation comments (#3351) 2025-04-22 08:11:00 +03:00
Nedyalko Dyakov
f6f917a97c
fix stackoverflow tag 2025-04-22 07:41:35 +03:00
Nedyalko Dyakov
dd8ba4d255
Merge branch 'master' into ndyakov/update-readme-discord 2025-04-18 17:14:34 +03:00
Nedyalko Dyakov
93b822e6b5
fix discord link in CONTRIBUTING.md 2025-04-18 00:47:25 +03:00
Nedyalko Dyakov
e191cf9dbe
fix: better error handling when fetching the master node from the sentinels (#3349)
* Better error handling when fetching the master node from the sentinels

* fix error message generation

* close the errCh to not block

* use len over errCh
2025-04-17 16:31:07 +03:00
Nedyalko Dyakov
f903bb939b
updated with direct invite link 2025-04-17 14:12:33 +03:00
Naveen Prashanth
a4aea258fc
Ensure context isn't exhausted via concurrent query as opposed to sentinel query (#3334) 2025-04-16 22:32:40 +03:00
Bulat Khasanov
e2149b06f7
Use correct slot for COUNTKEYSINSLOT command (#3327) 2025-04-16 18:32:57 +03:00
ofekshenawa
7b9bd6c36e
Add integration tests for Redis 8 behavior changes in Redis Search (#3337)
* Add  integration tests for Redis 8 behavior changes in Redis Search

* Undo changes in ft.search limit

* Fix BM25 as the default scorer test

* Add more tests and comments on deprecated params

* Update search_commands.go

* Remove deprication comment for nostopwords

---------

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-04-16 15:59:20 +03:00
andy-stark-redis
b26758a906
DOC-5102 added CountOnly search example for docs (#3345) 2025-04-15 18:55:44 +03:00
Bulat Khasanov
eedb171825
Use DB option in NewFailoverClusterClient (#3342) 2025-04-15 16:57:50 +03:00
Nedyalko Dyakov
bb6fcc030e
Merge branch 'master' into ndyakov/update-readme-discord 2025-04-15 16:55:53 +03:00
Nedyalko Dyakov
cff017b19f
update with badges similar to rest of the libraries. update url 2025-04-15 16:38:41 +03:00
Nedyalko Dyakov
93bc3e6140
fix add missing command in interface (#3344) 2025-04-15 16:19:53 +03:00
Nedyalko Dyakov
27cfce4485
Merge remote-tracking branch 'origin/master' into ndyakov/update-readme-discord 2025-04-15 16:13:35 +03:00
ofekshenawa
6e07177495
Fix FT.Search Limit argument and add CountOnly argument for limit 0 0 (#3338)
* Fix Limit argument and add CountOnly argument

* Add test and Documentation

* Update search_commands.go

---------

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-04-15 14:39:59 +03:00
Nedyalko Dyakov
cc5ff96458
Merge branch 'master' into ndyakov/update-readme-discord 2025-04-07 16:51:33 +03:00
dependabot[bot]
46484324a5
chore(deps): bump rojopolis/spellcheck-github-actions (#3336)
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.47.0 to 0.48.0.
- [Release notes](https://github.com/rojopolis/spellcheck-github-actions/releases)
- [Changelog](https://github.com/rojopolis/spellcheck-github-actions/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rojopolis/spellcheck-github-actions/compare/0.47.0...0.48.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  dependency-version: 0.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 13:21:55 +03:00
Nedyalko Dyakov
1a80fa2319
Merge branch 'master' into ndyakov/update-readme-discord 2025-04-03 23:48:39 +03:00
Nedyalko Dyakov
e1d315204e
add line in CONTRIBUTING.md 2025-04-03 17:38:26 +03:00
Nedyalko Dyakov
1447e599a3
use redis discord guild 2025-04-03 17:34:22 +03:00
Nedyalko Dyakov
8e020c1d8f
drop ft.profile that was never enabled (#3323) 2025-04-03 17:01:34 +03:00
Nedyalko Dyakov
0df0f3c887
use 8.0-RC1 (#3330) 2025-04-03 16:10:51 +03:00
Liu Shuang
0cfcd1a61d
update pubsub.go (#3329) 2025-04-03 16:10:31 +03:00
andy-stark-redis
53daf77e1a
DOC-4464 examples for llen, lpop, lpush, lrange, rpop, and rpush (#3234)
* DOC-4464 examples for llen, lpop, lpush, lrange, rpop, and rpush

* DOC-4464 improved variable names

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-03-28 23:05:36 +02:00
Nedyalko Dyakov
cb3aa19618
Sync master with v9.8.0-beta.1 (#3322) 2025-03-25 12:25:35 +02:00
Nikolay Dubina
482a20d9c9
Feature more prominently how to enable OpenTelemetry instrumentation (#3316) 2025-03-25 09:28:25 +02:00
Oleglacto
132818033b
added Do method for raw query by single conn from pool.Conn() (#3182)
* added `Do` method for raw query by single conn from `pool.Conn()`

* added test to cmdble Do method

* fixed test

* moved Do cmd to commands.go

---------

Co-authored-by: Oleg Laktyushkin <oglaktyushkin@avito.ru>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-03-24 18:36:21 +02:00
Nedyalko Dyakov
97f7530415
Drop RedisGears (aka. Triggers and Functions) (#3321) 2025-03-24 17:30:29 +02:00
LINKIWI
9762559c75
Bound connection pool background dials to configured dial timeout (#3089) 2025-03-24 15:45:43 +02:00
Justin
694a7101d4
Make MASTERDOWN a retriable error in RedisCluster client (#3164)
When clusters are running with `replica-server-stale-data no`, replicas
will return a MASTERDOWN error under two conditions:
  1. The primary has failed and we are not serving requests.
  2. A replica has just started and has not yet synced from the primary.

The former, primary has failed and we are not serving requests, is
similar to a CLUSTERDOWN error and should be similarly retriable.

When a replica has just started and has not yet synced from the primary
the request should be retried on other available nodes in the shard.
Otherwise a percentage of the read requests to the shard will fail.

Examples when `replica-server-stale-data no` is enabled:
  1. In a cluster using `ReadOnly` with a single read replica, every
     read request will return errors to the client because MASTERDOWN is
     not a retriable error.
  2. In a cluster using `RouteRandomly` a percentage of the requests
     will return errors to the client based on if this server was
     selected.

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-03-24 15:28:20 +02:00
Nedyalko Dyakov
30c128a67a
chore: disable verifying golangci configuration (#3319) 2025-03-24 15:19:26 +02:00
Alexander Menshchikov
d86395694d
Add FailoverClusterClient support for Universal client (#2794)
* Add FailoverClusterClient support + fix example/hset-struct go.sum

* Improve NewUniversalClient comment

---------

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-03-24 14:21:08 +02:00
ofekshenawa
15059395a1
Support new hash commands: HGETDEL, HGETEX, HSETEX (#3305) 2025-03-24 14:03:26 +02:00
dependabot[bot]
d29aace826
chore(deps): bump golangci/golangci-lint-action from 6.5.1 to 6.5.2 (#3317)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.5.1 to 6.5.2.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.5.1...v6.5.2)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-24 13:47:29 +02:00
Nedyalko Dyakov
34222bffeb
release 9.7.3, retract 9.7.2 (#3314) (#3315) 2025-03-21 13:13:14 +02:00
dependabot[bot]
11efd6a01e
chore(deps): bump golang.org/x/net in /example/otel (#3308)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-19 21:11:14 +02:00
Nedyalko Dyakov
d236865b0c
fix: handle network error on SETINFO (#3295) (CVE-2025-29923)
* fix: handle network error on SETINFO

This fix addresses potential out of order responses as described in `CVE-2025-29923`

* fix: deprecate DisableIndentity and introduce DisableIdentity

Both options will work before V10. In v10 DisableIndentity will be dropped. The preferred flag to use is `DisableIdentity`.
2025-03-19 19:02:36 +02:00
andy-stark-redis
74d4f08476
DOC-4494 SADD and SMEMBERS command examples (#3242)
* DOC-4494 added sadd example

* DOC-4494 sadd and smembers examples

* DOC-4494 better naming convention for result variables

---------

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-03-19 17:36:58 +02:00
ofekshenawa
a402c55344
Add vector types INT8 and UINT8 test (#3299) 2025-03-18 18:05:45 +02:00
b1ackd0t
8269e6a22a
fix(tracing): show the whole command rather than truncated version of it (#3290)
Truncate version of a long key might not be useful when debugging

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-03-18 14:50:29 +02:00
Nedyalko Dyakov
9494d8498a
chore: use redis 8 ce m05 (#3304)
* use m05

* add platform, since client-libs has image for amd64

* verbose testing

* Update .github/workflows/build.yml
2025-03-18 14:20:18 +02:00
dependabot[bot]
b3709c6506
chore(deps): bump golangci/golangci-lint-action from 6.5.0 to 6.5.1 (#3302)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.5.0 to 6.5.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.5.0...v6.5.1)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-17 16:27:26 +02:00
Monkey
4f09082f6b
fix: connection pool timeout, increase retries (#3298)
* fix: connection pool timeout, increase retries

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

* fix: add shouldRetry test

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

---------

Signed-off-by: monkey <golang@88.com>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-03-14 10:05:22 +02:00
LINKIWI
1c9309fdc2
Set client name in HELLO RESP handshake (#3294) 2025-03-13 14:55:28 +02:00
ofekshenawa
555a41ecc7
Enable dialect 2 on default (#3213)
* Enable dialect 2 on deafult

* add vector test for default dialect

* Add dialect 1 test

* Add dialect 1 test & fix ft.search

* Add default dialect to Readme
2025-03-13 14:54:25 +02:00