Commit Graph

2502 Commits

Author SHA1 Message Date
dependabot[bot] 0b5e1866b1
chore(deps): bump actions/stale from 3 to 8 (#2732)
Bumps [actions/stale](https://github.com/actions/stale) from 3 to 8.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v3...v8)

---
updated-dependencies:
- dependency-name: actions/stale
  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: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-27 11:24:47 +03:00
Gabriel c6fe509f4a
Add stream interface back to `Cmdable` (#2725)
Without it we can't call stream functions from `Cmdable` and alikes.

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-27 10:50:47 +03:00
Eng Zer Jun 275af73971
refactor(gears): remove redundant nil check (#2728)
From the Go specification:

  "1. For a nil slice, the number of iterations is 0." [1]

Therefore, an additional nil check for before the loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-09-27 10:50:05 +03:00
ofekshenawa dac3314bc6
Bump version to 9.2.0 (#2722) 2023-09-20 16:38:58 +03:00
Chayim 6199a2af2c
Making command structs digestable (#2716)
* intial move

* adding stringcmdable

* moving module commands to align with other changes

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: ofekshenawa <ofek.shenawa@redis.com>
2023-09-20 16:08:24 +03:00
dependabot[bot] e07f7e62b8
chore(deps): bump github.com/bsm/ginkgo/v2 from 2.9.5 to 2.12.0 (#2690)
Bumps [github.com/bsm/ginkgo/v2](https://github.com/bsm/ginkgo) from 2.9.5 to 2.12.0.
- [Commits](https://github.com/bsm/ginkgo/compare/v2.9.5...v2.12.0)

---
updated-dependencies:
- dependency-name: github.com/bsm/ginkgo/v2
  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: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: Chayim <chayim@users.noreply.github.com>
2023-09-20 14:57:47 +03:00
dependabot[bot] 7ecd7ac1c7
chore(deps): bump github.com/bsm/gomega from 1.26.0 to 1.27.10 (#2689)
Bumps [github.com/bsm/gomega](https://github.com/bsm/gomega) from 1.26.0 to 1.27.10.
- [Commits](https://github.com/bsm/gomega/compare/v1.26.0...v1.27.10)

---
updated-dependencies:
- dependency-name: github.com/bsm/gomega
  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: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: Chayim <chayim@users.noreply.github.com>
2023-09-20 14:56:07 +03:00
Nikolay Vorobev e23ea028bd
Added MaxActiveConns (#2646)
* Added the ability to set a connection growth limit when there are not enough connections in the pool using MaxActiveConns

* fix comment

* fix

* fix

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 14:55:23 +03:00
Tiago Peczenyj 934c6a3fe0
make public probabilistic and redis gears interfaces (#2695)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 14:54:50 +03:00
Nikan Vasei 0637c53f10
Added the support for WAITAOF which is a new command in redis ver7.2.0 (#2629)
* implemented WaitAOF command for the redis ver7.2.0

* updated the test corresponding to WaitAOF

---------

Co-authored-by: Chayim <chayim@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 14:09:23 +03:00
taytzehao 7acc0cd254
useTime duration calculation (#2651)
Co-authored-by: tzehaoo <tzehao@intnt.ai>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 14:08:08 +03:00
Tiago Peczenyj e8ad794e96
Format code and fix go vet (#2696)
* run go fix ./...

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>

* run make fmt

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>

* fix go vet ./... issues

* Update README.md

Reorder imports with the rules defined in the Makefile 

as if we run `make fmt`

* run gofumpt -w .

* update Makefile to use gofumpt instead gofmt

* increment makefile

* format test

* format tests

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>

---------

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 14:03:44 +03:00
loveY 1a7d2f4ad4
upgrade bitfield cmd to `add multiple values` (#2648)
Co-authored-by: wangzheng1 <wangzheng1@yidian-inc.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 10:49:46 +03:00
Chayim 71dd81cded
CONTRIBUTING guideliens (#2718) 2023-09-20 10:42:45 +03:00
Tiago Peczenyj e502cdc750
Adding Go 1.21.x for CI coverage (#2697)
* Update build.yml

Add support to go 1.21.x

* Update doctests.yaml

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 10:42:31 +03:00
ofekshenawa 33edd3de68
Rename probablistic commands with args (#2701)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
2023-09-20 10:42:09 +03:00
dependabot[bot] 736351c7cf
chore(deps): bump actions/checkout from 3 to 4 (#2702)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  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: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 10:41:10 +03:00
ofekshenawa 0b6be62b71
Identify client on connect (#2708)
* Update CLIENT-SETINFO to support suffixes

* Update CLIENT-SETINFO

* fix acl log test

* add setinfo option to cluster

* change to DisableIndentity

* change to DisableIndentity
2023-09-20 10:33:09 +03:00
Chayim 54a106ee19
Adding stale issues workflow (#2700) 2023-09-20 09:28:28 +03:00
Chayim 678bf21b48
Updating redis binary for makefile to 7.2.1 (#2693)
* updating redis binary from makefile to 7.2.0

* redis 7.2.1

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-19 18:53:47 +03:00
Anurag Bandyopadhyay 3b0d10b4ed
Support for CLIENT SETINFO (#2659)
* feat: merge master

* feat: revert ring.go

* feat: add ClientSetInfo command

* fix: test and cmd:

* fix: test and cmd

* fix: test and cmd

* fix: test and cmd

* feat: redesigning the API

* fix: panic test

* fix: panic test

---------

Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-14 16:24:23 +03:00
ofekshenawa 017466b6cc
Add Redis Timeseries support (#2688)
* Add Redis Timeseries support

* Small fixes

* Make timeseries interface public

* remove bloom renaming
2023-09-11 14:51:31 +03:00
ofekshenawa 5bbd80d943
Skip flaky tests (#2699) 2023-09-10 15:43:22 +03:00
ofekshenawa c3098d5f7e
Bump to 9.1.0 (#2676)
* Bump to 9.0.6

* Bump to 9.1.0
2023-08-16 18:30:40 +03:00
ofekshenawa aba21be8cd
Add Redis Gears support (#2675)
* Add gears commands and tests

* Fix tfunctionlist and add docstrings

* fixes

* fixes

* add tfcallasync to gearsCmdable
2023-08-16 17:06:07 +03:00
ofekshenawa 558581eac6
bloom support (#2673) 2023-08-15 10:19:19 +03:00
Chayim c7399b6a17
Spelling for CI (#2666) 2023-08-13 11:07:42 +08:00
Chayim b1103e3d43
Bumping redis versions (#2662) 2023-07-26 14:58:49 +03:00
Chayim 0cc9cd6e08
Updating the README with connection options (#2661) 2023-07-26 09:40:01 +03:00
guangwu c0ab7815ea
chore: fix staticcheck (#2631) 2023-07-02 14:38:52 +03:00
Vladimir Mihailenco 50f04c14de chore: update otel example 2023-06-18 10:25:42 +03:00
Kamyab Zareh b1800df239
fix: Fix bool ToBool bug (#2626) 2023-06-13 12:20:21 +03:00
dependabot[bot] 0bdc7dd898
chore(deps): bump github.com/bsm/ginkgo/v2 from 2.7.0 to 2.9.5 (#2613)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chayim <chayim@users.noreply.github.com>
2023-06-05 14:12:54 +03:00
Elena Kolevska 84706fbcef
Adds testable examples to be automatically pulled in redis.io docs (#2601)
* Adding examples

* Update readme

* Update Readme

* Remove unneeded lines. Added an examples.json file

* Update readme for examples

* More fixes

* Add example tags

* Update examples.json

* Rename

* Add another hide block

* Temporary test

* Add example id for lpush and lrange

* Update readme

* Update output text

* Improve examples

* Move examples test dir to doctests

* Add redis v7's ExpireAtNX, ExpireAtXX, ExpireAtGT, ExpireAtLT, PExpireNX, PExpireXX, PExpireGT, PExpireLT, PExpireAtNX, PExpireAtXX, PExpireAtGT, PExpireAtLT

feat: Add redis v7's NX, XX, GT, LT expireat, pexpire, pexpireat variants

* add tests for new commands

add tests to coverage for the new commands

* Adds github workflow to add docexamples tests. Flushes db before every test.

* Fixes broken workflow file

* Adds Igor’s suggestion of keeping the instructions for docexamples in one place

* Removes unneeded “Missing” section, because it was solved as a workflow

* Revert "add tests for new commands"

This reverts commit af12cb6bd6.

* Fixes review comments

* Specifies versions as strings instead of floats

---------

Co-authored-by: carner <icarners@gmail.com>
2023-05-31 14:22:55 +01:00
Vladimir Mihailenco dc8c93ba66
chore: release v9.0.5 (release.sh) (#2614) 2023-05-29 09:05:49 +03:00
Vladimir Mihailenco 99f8464a5a
chore: update otel example to the latest versions (#2606) 2023-05-29 08:42:32 +03:00
Monkey 6f0af685cf
fix the reading of the "entries-read" field in XInfoStreamFull (#2595)
* fix:  In the response of the XInfoStreamFull command, the "entries-read" field may be nil

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

* add XInfoStreamFull test

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

* add test XInfoStreamFull entries_read = nil

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

---------

Signed-off-by: monkey92t <golang@88.com>
2023-05-29 08:40:45 +03:00
Mikhail Mazurskiy 9a9423d3df
chore(deps): Update otel/metric to stable API (#2607) 2023-05-24 12:07:43 +03:00
ljun20160606 840c25cb6f
feat: add field protocol to setupClusterQueryParams (#2600) 2023-05-18 21:29:58 +08:00
ljun20160606 391798880c
feat: add protocol option (#2598) 2023-05-16 22:02:22 +08:00
Anurag Bandyopadhyay 31ba855dde
feat: Add ACL LOG (#2536)
* feat: Add ACL LOG

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

---------

Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
Co-authored-by: ktsivkov <ktsivkov@gmail.com>
Co-authored-by: Elena Kolevska <elena@kolevska.com>
Co-authored-by: monkey92t <golang@88.com>
2023-05-08 22:40:42 +08:00
Vladimir Mihailenco fcb3506e79
chore: release v9.0.4 (release.sh) (#2572) 2023-05-02 08:40:46 +03:00
Vincent Boutour e2fabdf157
chore(deps): Updating otel/metric and fixing breaking changes (#2569)
* chore(deps): Updating otel/metric and fixing breaking changes

Signed-off-by: Vincent Boutour <bob@vibioh.fr>

* ci: Removing go1.18 and updating example/otel to latest version

Latest otel version use atomic.Pointer which is a go1.19 feature, so we have to drop support for the go 1.18

Signed-off-by: Vincent Boutour <bob@vibioh.fr>

---------

Signed-off-by: Vincent Boutour <bob@vibioh.fr>
2023-05-01 11:33:30 +03:00
fengyun.rui f1c2e3261e
docs: update doc of redis option (#2567) 2023-04-28 09:47:01 +03:00
mstmdev 8b2bcd5a85
chore: fix typo in the result.go (#2558) 2023-04-25 23:06:09 +08:00
Monkey b8c7317cc6
feat: add client info command (#2483)
* feat: add client info command

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

* add lib-name, lib-ver

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

---------

Signed-off-by: monkey92t <golang@88.com>
2023-04-24 21:18:33 +08:00
Anurag Bandyopadhyay 6ecbcf6c90
Add ZRANK, ZREVRANK WITHSCORE (#2531)
* feat: adding zrankwithscore and zrevrankwithscore commands : redis 7.2

* fix: test for non-existing members

* fix: Error check

* fix: string to float

* add ZRankWithScore API for Cmdable interface

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

* add notes

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

---------

Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
Co-authored-by: monkey92t <golang@88.com>
2023-04-19 22:37:41 +08:00
Kristian Tsivkov 38ca7c1680
Add support for MODULE LOADEX command (#2490)
* Added support for MODULE LOADEX command

Co-authored-by: Anurag Bandyopadhyay <angbpy@gmail.com>
2023-04-18 21:03:47 +08:00
Anurag Bandyopadhyay d7c6c3598b
Maintenance : Deprecate FCallRo & add FCallRO (#2550)
* Deprecated FCallRo

* feat: FCallRo to FCallRO

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

* update doc

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

---------

Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
Co-authored-by: monkey92t <golang@88.com>
2023-04-18 01:18:06 +08:00
Anurag Bandyopadhyay 0d860cb038
Add support for CLUSTER MYSHARDID command (#2530)
* feat: add support for CLUSTER MYSHARDID command

Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
2023-04-17 21:52:35 +08:00