1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-11 18:10:43 +03:00
Commit Graph

2935 Commits

Author SHA1 Message Date
ofekshenawa
d5d21398f6 Add tests case with FLOAT16 and BFLOAT16 vectors (#3054)
* Add tests case with FLOAT16 and BFLOAT16 vectors

* Remove from enterprise
2025-08-11 01:39:46 +03:00
ofekshenawa
bc524fe034 Test RediSearch dialect 4 (#3052)
* Test dialect 4

* Add support for num and email

* remove tests from RE
2025-08-11 01:39:46 +03:00
ofekshenawa
be3e4f0117 Add tests for search GEO (#3051)
* Add tests for search GEO

* Remove from enterprise
2025-08-11 01:39:46 +03:00
ofekshenawa
8408e97cd8 Support RediSearch empty values (#3053)
* Support RediSearch empty values

* Remove from enterprise
2025-08-11 01:39:45 +03:00
dependabot[bot]
d81c1998ce chore(deps): bump golangci/golangci-lint-action from 4 to 6 (#2993)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v6)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Monkey <golang@88.com>
2025-08-11 01:39:45 +03:00
LINKIWI
eb4d5f0bd9 Avoid unnecessary retry delay following MOVED and ASK redirection (#3048) 2025-08-11 01:39:45 +03:00
naiqianz
516652021d add test for tls connCheck #3025 (#3047)
* add a check for TLS connections.
2025-08-11 01:39:45 +03:00
ofekshenawa
71ac8c8e5b TimeSeries insertion filters for close samples (#3003)
* TimeSeries insertion filters for close samples

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:45 +03:00
tzongw
8f4d4f700c Support Hash-field expiration commands in Pipeline & Fix HExpire HExpireWithArgs expiration (#3038)
* Support Hash-field expiration commands in Pipeline

* Fix HExpire & HExpireWithArgs expiration

* Fix HExpire & HPExpire Testcase

* Update commands_test.go

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: Monkey <golang@88.com>
2025-08-11 01:39:45 +03:00
ofekshenawa
711fe9f5c6 Support Hash-field expiration for 7.4 CE RC2 (#3040)
Co-authored-by: Monkey <golang@88.com>
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:45 +03:00
Srikar Jilugu
f5a789a846 fix node routing in slotClosestNode (#3043)
* fix node routing when all nodes are failing

* fix minlatency zero value
2025-08-11 01:39:45 +03:00
Immersed
8bfdb826c7 Update pubsub.go (#3042)
Change context.Background() to ctx
2025-08-11 01:39:45 +03:00
ofekshenawa
26f69c6304 Change monitor test to run manually (#3041)
* Change monitor test to run manually

* fix
2025-08-11 01:39:45 +03:00
dependabot[bot]
41a06555e0 chore(deps): bump rojopolis/spellcheck-github-actions (#3028)
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.36.0 to 0.38.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.36.0...0.38.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  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>
Co-authored-by: Monkey <golang@88.com>
2025-08-11 01:39:45 +03:00
ofekshenawa
31068bbf2b RediSearch Support (#2801)
* Add RediSearch Support

* searach

* Add RediSearch commands and tests

* Adding more tests and fixing commands

* Remove unnecessary additions

* fixing tests

* fixing tests

* fixing tests

* fixing FTConfig dialect test

* fix commects

* make enum for field types

* Support resp 2

* fix golang ci

* fix ftinfo

---------

Co-authored-by: Chayim <chayim@users.noreply.github.com>
2025-08-11 01:39:45 +03:00
Andrew Haines
3d4bc2091e Add (*StatusCmd).Bytes() method (#3030)
Signed-off-by: Andrew Haines <andrew@haines.org.nz>
Co-authored-by: Monkey <golang@88.com>
2025-08-11 01:39:45 +03:00
dependabot[bot]
9edb041e7f chore(deps): bump golang.org/x/net in /example/otel (#3000)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.23.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>
Co-authored-by: Monkey <golang@88.com>
2025-08-11 01:39:45 +03:00
b1ron
0e5453d7df Add support for XREAD last entry (#3005)
* add support for XREAD last entry

* handle reading from multiple streams

* add test to ensure we block for empty stream

* small tweak

* add an option to XReadArgs instead

* modify test comment

* small preallocation optimization

* Changed argument to generic ID, skip tests on Enterprise

* Fix test case

* Updated expiration command

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: vladvildanov <divinez122@outlook.com>
2025-08-11 01:39:45 +03:00
ofekshenawa
ef84e83664 remove tests from RE (#3035) 2025-08-11 01:39:45 +03:00
Gabriel Erzse
f7411e0f14 Support NOVALUES parameter for HSCAN (#2925)
* Support NOVALUES parameter for HSCAN

Issue #2919

The NOVALUES parameter instructs HSCAN to only return the hash keys,
without values.

* Update hash_commands.go

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:45 +03:00
Vladyslav Vildanov
f95779d8ee Added test case for CLIENT KILL with MAXAGE option (#2971)
* Added test case for CLIENT KILL with MAXAGE option

* Fixed sleep value

* Added additional condition to kill specific connection

* Test commit

* Test commit

* Updated test case to handle timeouts

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:45 +03:00
ofekshenawa
8409fa54e2 Support Hash-field expiration commands (#2991)
* Add HExpire command

* Add HPExpire, HexpireAt, HPExpireAt, HTTL, HPTTL, HPersist,HExpireTime, HPExpireTIme, HGetF, HSetF commands

* add docstring

* add tests and fix commands

* modify commands

* api changes

* fix tests

* remove tests from RE
2025-08-11 01:39:45 +03:00
ofekshenawa
0ef8e52e72 Change redis version from 7.2 to 7.4 in makefile (#3034)
* Change redis version from 7.2 to 7.4

* fix jsonGet test

* Add 'watch' to client info

* Remove jsonGet from Enterprise tests
2025-08-11 01:39:45 +03:00
Vladimir Mihailenco
4a1319fb04 Release/v9.5.3 (#3018)
* chore: ignore package.json

* chore: release v9.5.3 (release.sh)
2025-08-11 01:39:45 +03:00
Monkey
bfea813687 fix: fix #2681 (#2998)
Signed-off-by: monkey92t <golang@88.com>
2025-08-11 01:39:45 +03:00
Sam Xie
d453af549f Remove skipping span creation by checking parent spans (#2980)
* Remove skipping span creation by checking parent spans

* Update CHANGELOG
2025-08-11 01:39:45 +03:00
Dávid Baláž
7360090156 Handle IPv6 in isMovedError (#2981)
* Handle IPv6 in isMovedError

* Simplify GetAddr

---------

Co-authored-by: Monkey <golang@88.com>
2025-08-11 01:39:45 +03:00
Dávid Baláž
8f17cbab9e Fix XGroup first pos key (#2983) 2025-08-11 01:39:45 +03:00
Akash Darshan
b64b22e73e Adding BitfieldRo in BitMapCmdable interface (#2962)
Co-authored-by: Monkey <golang@88.com>
2025-08-11 01:39:45 +03:00
deferdeter
603b0ba7a3 Fix typo in comment (#2972)
Signed-off-by: deferdeter <deferdeter@outlook.com>
2025-08-11 01:39:45 +03:00
Nedyalko Dyakov
b7838dc4e7 chore(release): 9.12.0 / redis 8.2 (#3464) extra/redisotel/v9.12.0 extra/rediscmd/v9.12.0 v9.12.0 extra/rediscensus/v9.12.0 extra/redisprometheus/v9.12.0 2025-08-05 16:50:25 +03:00
Monkey
6a48d3fec1 feat: recover addIdleConn may occur panic (#2445)
* feat: recover addIdleConn may occur panic

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

* fix test race

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

---------

Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-08-05 15:31:58 +03:00
Cattī Crūdēlēs
4767d9dfaf fix(redisotel): fix buggy append in reportPoolStats (#3122)
The current append twice to `conf.attrs` approach in `reportPoolStats` may result in unexpected idleAttrs,
due to `append` [can mutate](https://github.com/golang/go/issues/29115#issuecomment-444669036) the underlying array of the original slice,
as demonstrated at <https://go.dev/play/p/jwRMofH91eQ?v=goprev>.

Also, I replaced `metric.WithAttributes` in `reportPoolStats` with `metric.WithAttributeSet`,
since `WithAttributes` is just `WithAttributeSet` with some extra works that are not needed here,
see <https://pkg.go.dev/go.opentelemetry.io/otel/metric@v1.22.0#WithAttributes>.

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-08-05 15:15:34 +03:00
Mykhailo Alipa
7158a8dad4 feat(ring): specify custom health check func via HeartbeatFn option (#2940)
* specify custom health check func via ShardHealthCheckFn option

* ShardHealthCheckFn renamed to HeartbeatFn

---------

Co-authored-by: Mykhailo Alipa <strobil@Mykhailos-MacBook-Air.local>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-08-05 15:00:33 +03:00
Elena Kolevska
8d15d03d4e chore(github): merges into one job with two steps (#3463)
Signed-off-by: Elena Kolevska <elena@kolevska.com>
2025-08-05 14:49:28 +03:00
cxljs
375fa5d083 chore(doc): improve code readability (#3446)
- replace two similar functions `appendUniqueNode` and `appendIfNotExists` with a generic function.

- simplify the implementation of the `get` method in `clusterNodes`

- keep the member name `_generation` of `clusterNodes` consistent with other types.

- rename a data member `_masterAddr` to `masterAddr`.

Signed-off-by: Xiaolong Chen <fukua95@gmail.com>
2025-08-04 17:22:16 +03:00
Nedyalko Dyakov
f006e941d9 chore(release): 9.12.0-beta.1 (#3460) extra/rediscmd/v9.12.0-beta.1 extra/redisprometheus/v9.12.0-beta.1 extra/rediscensus/v9.12.0-beta.1 v9.12.0-beta.1 extra/redisotel/v9.12.0-beta.1 2025-08-04 15:00:37 +03:00
ofekshenawa
f93bfa1f36 feat(search): Add Query Builder for RediSearch commands (#3436)
* Add search module builders and tests (#1)

* Add search module builders and tests

* Add tests

* Use builders and Actions in more clean way

* Update search_builders.go

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>

* Update search_builders.go

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>

---------

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-08-04 14:15:44 +03:00
andy-stark-redis
421c8a48b4 chore(doc): DOC-5472 time series doc examples (#3443)
* DOC-5472 added and fixed tests up to

* DOC-5472 added agg bucket examples

* DOC-5472 time series doc examples

* DOC-5472 removed black lines above error checks, following feedback

* DOC-5472 fixed param formatting, following feedback

---------

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-08-04 14:08:10 +03:00
ofekshenawa
2ff9249846 chore(tests): Add VAMANA compression algorithm tests (#3461) 2025-08-04 14:07:15 +03:00
ofekshenawa
1eed165f9d feat(proto): add configurable buffer sizes for Redis connections (#3453)
* add configurable buffer sizes for Redis connections

* add MiB to wordlist

* Add description for buffer size parameter
2025-08-04 09:16:54 +03:00
Elena Kolevska
c1f6a04d7c Improve stale issue workflow (#3458)
* updated stale issue policy

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Adds a temporary dry run

Signed-off-by: Elena Kolevska <elena@kolevska.com>

---------

Signed-off-by: Elena Kolevska <elena@kolevska.com>
2025-08-04 09:15:34 +03:00
ofekshenawa
3c85d090fe feat(search): Add VAMANA vector type to RediSearch (#3449)
* Add VAMANA vector type to redisearch

* Change to svs-vamana vector type && remove panics from search module

* fix tests

* fix tests

* fix tests
2025-08-01 15:41:40 +03:00
Nedyalko Dyakov
9177a76d33 chore(ci): Add 8.2 rc2 pre build for CI (#3459)
* chore(ci): Add 8.2 rc2 pre build for CI

* Updated gh username

---------

Co-authored-by: Hristo Temelski <hristo.temelski@redis.com>
2025-08-01 10:19:40 +03:00
Nedyalko Dyakov
9cfefa6896 fix(search): return results even if doc is empty (#3457)
* fix(search): return results even if doc is empty

"If a relevant key expires while a query is running, an attempt to load
the key's value will return a null array. However, the key is still
counted in the total number of results." - Redis Search return
documentation

* fix(doctest): fix assertions in doctests
2025-07-31 15:21:05 +03:00
cxljs
5aca9c28ac VSIM add EPSILON option (#3454)
Signed-off-by: Xiaolong Chen <fukua95@gmail.com>
2025-07-31 11:45:39 +03:00
Hristo Temelski
bcdb7d1cfa Added new stream commands (#3450)
* added new stream commands

* updated docker image

* fixed command return type

* fixed tests

* addressed PR comments

---------

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-07-31 11:11:15 +03:00
Hristo Temelski
7bc12bb386 chore(ci): bumped redis 8.2 version used in the CI/CD (#3451) 2025-07-30 13:42:18 +03:00
Antonio Mindov
23a87a2137 feat(otel): add closing support to otel metrics instrumentation (#3444)
closes #3424
2025-07-24 12:48:34 +03:00
Julien Riou
162c3fbf47 feat: Add "skip_verify" to Sentinel (#3428)
Same as 3d4310ae but for FailoverOptions.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-07-22 12:49:22 +03:00