1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-05 20:24:00 +03:00
Commit Graph

2536 Commits

Author SHA1 Message Date
andy-stark-redis
d592eedde6 Fix field name spellings (#3132)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:42:44 +03:00
ofekshenawa
a7a0af2372 fix conflicts 2025-08-11 01:42:38 +03:00
andy-stark-redis
76417485e2 DOC-4328 added DEL, EXPIRE, and TTL command examples (#3143)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:40:08 +03:00
andy-stark-redis
891bb2a7c8 DOC-4324 added ZADD and ZRANGE command examples (#3142)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:40:08 +03:00
andy-stark-redis
7fbbb5b15e DOC-4323 added INCR command example (#3141)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
cecf0307ac DOC-4322 added HSET/HGET command page examples (#3140)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
3d780f7ac4 DOC-4233 added geospatial examples (#3126)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
392b9aeba0 DOC-4240 added Top-K examples (#3119)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
6bf55afdf2 DOC-4235 added bitfield examples (#3125)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
b1ae5f658f DOC-4239 added Count-min sketch examples (#3118)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
30f193d535 DOC-4236 added HyperLogLog examples (#3117)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
fab9d4b79f DOC-4238 added Cuckoo filter examples (#3116)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
Francesco Renzi
c64e94717a Remove direct read from TLS underlying conn (#3138) 2025-08-11 01:39:46 +03:00
ofekshenawa
c8e4a1eebf Fix Flaky Test: should handle FTAggregate with Unstable RESP3 Search Module and without stability (#3135) 2025-08-11 01:39:46 +03:00
andy-stark-redis
9c8a0a9c29 DOC-4237 added Bloom filter examples (#3115)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
5946de14ad DOC-4228 JSON code examples (#3114)
* DOC-4228 added JSON code examples

* DOC-4228 example and formatting corrections

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
d1f6595343 DOC-4234 added bitmap examples (#3124)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
8a1da58194 DOC-4241 added t-digest examples (#3123) 2025-08-11 01:39:46 +03:00
andy-stark-redis
e661d8e239 DOC-4229 sorted set code examples (#3113)
* DOC-4229 added sorted set doc examples

* DOC-4229 wrapped long lines

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
1fc50a2854 DOC-4231 added set datatype examples (#3111)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
6f677c94b6 DOC-4230 list doc code examples (#3110)
* DOC-4230 list tutorial examples

* DOC-4230 added missing printout comment

* DOC-4230 added set datatype examples

* Revert "DOC-4230 added set datatype examples"

This reverts commit 4f208aaf7b.

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
andy-stark-redis
b6e3877ff3 Doc 4226 hash tces (#3106)
* DOC-4226 hash examples for docs

* DOC-4226 added hash scan examples

* DOC-4226 fixed test output issues

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
ofekshenawa
83e7f56349 Support Resp 3 Redis Search Unstable Mode (#3098)
* Updated module version that points to retracted package version (#3074)

* Updated module version that points to retracted package version

* Updated testing image to latest

* support raw parsing for problematic Redis Search types

* Add UnstableResp3SearchModule to client options

* Add tests for Resp3 Search unstable mode

* Add tests for Resp3 Search unstable mode

* Add readme note

* Add words to spellcheck

* Add UnstableResp3SearchModule check to assertStableCommand

* Fix assertStableCommand logic

* remove go.mod changes

* Check panic occur on tests

* rename method

* update errors

* Rename flag to UnstableResp3

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: vladvildanov <divinez122@outlook.com>
2025-08-11 01:39:46 +03:00
Ivan Pechorin
aafbf706ab properly retract v9.5.3 of redisotel and other extra packages (#3108) 2025-08-11 01:39:46 +03:00
andy-stark-redis
2f4b81a280 DOC-4213 string code examples (#3102)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:39:46 +03:00
ofekshenawa
4c0e6793dd Add test coverage reporting and Codecov badge (#3055)
* Add codecov to ci

* Add codecov to ci

* update yanl

* Add changes

* Add changes

* test

* Add changes

* Add changes

* Add changes
2025-08-11 01:39:46 +03:00
Vladyslav Vildanov
4f7b394ac9 Updated module version that points to retracted package version (#3074)
* Updated module version that points to retracted package version

* Updated testing image to latest
2025-08-11 01:39:46 +03:00
ofekshenawa
db7a9e9f71 Retract versions 9.5.3 and 9.5.4 (#3068) 2025-08-11 01:39:46 +03:00
dependabot[bot]
91870a196e chore(deps): bump rojopolis/spellcheck-github-actions (#3067)
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.38.0 to 0.40.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.38.0...0.40.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>
2025-08-11 01:39:46 +03:00
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