Commit Graph

2457 Commits

Author SHA1 Message Date
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
Monkey 7b4f2179cb
feat: no longer verify HELLO error messages (#2515)
Signed-off-by: monkey92t <golang@88.com>
2023-04-12 20:35:32 +08:00
Monkey 6edb1529ff
test: redis-version to 7.2-rc1 (#2532)
* test: redis-version to 7.2-rc1

Signed-off-by: monkey92t <golang@88.com>
2023-04-12 20:17:10 +08:00
Pranit Bauva a42ba14851
doc: pass ctx in example for infinite wait time (#2540)
Co-authored-by: Monkey <golang@88.com>
2023-04-06 00:16:26 +08:00
Pranit Bauva 842b65fb60
actions: build on go1.20.x (#2541)
github.Action add go1.20
2023-04-05 22:35:32 +08:00
iliyanm 46f245075e
fix: reader float parser (#2513) 2023-04-04 21:50:07 +08:00
Monkey 37c057b8e5
feat: read the structure to increase the judgment of the omitempty op… (#2529)
* feat: read the structure to increase the judgment of the omitempty option, the same as json

Signed-off-by: monkey92t <golang@88.com>
2023-04-03 15:43:18 +08:00
Chayim a2aa6b7138
Version 9.0.3 (#2518) 2023-04-02 13:55:09 +03:00
Monkey a388a637ed
feat: check pipeline.Do to prevent confusion with Exec (#2517)
Signed-off-by: monkey92t <golang@88.com>
2023-04-01 14:44:06 +08:00
Elena Kolevska e96c7b5f58
Function stats, function kill, fcall and fcall_ro (#2486) 2023-03-30 21:52:06 +08:00
Anurag Bandyopadhyay 9aba95a74f
feat: Add support for CLUSTER SHARDS command (#2507)
* feat: Adding support for CLUSTER SHARDS command

Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
2023-03-29 21:44:06 +08:00
Monkey 2cdd5ea34a
fix: eval api cmd.SetFirstKeyPos (#2501)
Signed-off-by: monkey92t <golang@88.com>
2023-03-28 21:24:04 +08:00
Chayim cccfca4593
redis 7.0.10 (#2508)
Co-authored-by: Monkey <golang@88.com>
2023-03-28 20:35:14 +08:00
Monkey 4c72b4e097
docs: add instructions for the HSet api (#2503)
Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: Chayim <chayim@users.noreply.github.com>
2023-03-28 20:12:32 +08:00
Anurag Bandyopadhyay 42d730c143
Add support for CLUSTER LINKS command (#2504)
* feat: Adding support for Cluster Links Command

Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
2023-03-28 12:19:54 +08:00
Septem f30d7c4a25
docs: fix comment typo (#2505) 2023-03-27 17:53:36 +08:00
Akshay Gandhi 386e0f0cd3
Add support for acl dryrun command (#2502)
* add support for acl dryrun command

Co-authored-by: Monkey <golang@88.com>
2023-03-26 22:21:46 +08:00
Anurag Bandyopadhyay 984bc2810d
Add support for COMMAND GETKEYS & COMMAND GETKEYSANDFLAGS (#2500)
* feat: Adding support for CommandsGetKeysAndFlags & CommandGetKeys

Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
2023-03-25 18:57:12 +08:00
Anurag Bandyopadhyay 6790337e5d
Add support for LCS Command (#2480)
* feat: initial set up for LCSCmd

* feat: adding test for LCS with no additional params

* feat: adding test for LCS with LEN param

* feat: resolving conflicts in command.go

* fix: changing reply and query structure

* feat: commands test for lcs and lcs with len

* fix: using dynamic args length

* fix: read

* fix: Cmd init

* sorting out the LCS commands

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

* fix: Adding error case test

* fix: adding correct error message

* fix: removed blank lines

---------

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-03-24 15:38:11 +08:00
Monkey 38aa0b7792
fix(appendArg): appendArg case special type (#2489)
Signed-off-by: monkey92t <golang@88.com>
2023-03-23 00:30:20 +08:00
Monkey 540554043b
feat(cmd): support for adding byte,bit parameters to the bitpos command (#2498)
Signed-off-by: monkey92t <golang@88.com>
2023-03-23 00:05:50 +08:00
dependabot[bot] 153a9efb96
chore(deps): bump actions/setup-go from 3 to 4 (#2495)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  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>
2023-03-20 13:35:49 +08:00
Anurag Bandyopadhyay 049d4f9691
Add: Support for COMMAND LIST command (#2491)
* feat: add support and tests for Command list command

Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
2023-03-19 18:20:42 +08:00
Euclid 30a6f7107e
fixed #2462 v9 continue support dragonfly, it's Hello command return "NOAUTH Authentication required" error (#2479)
* fixed #2462 error NOAUTH and support dragonfly

* check add comment

* alignment

---------

Co-authored-by: Monkey <golang@88.com>
2023-03-10 21:21:24 +08:00
Elena Kolevska 6501a8b15e
Implement `FUNCTION` group of commands (#2475)
* Implements function load, load replace and flush

* Implements `FUNCTIONS LIST`

* Fixes ineffectual assignment to err

* Extends other tests from the `FUNCTION` group

* Changes RdsFunction to Function

* Renames FunctionList command, for consistency

* Small fixes after review

* More fixes after review

* Implements the `LIBRARYNAME` and `WITHCODE` args for `FUNCTION LIST`

* Implements `FUNCTION DUMP`. Solves https://github.com/redis/go-redis/issues/2396

* Use a pointer instead of value for `First()`

* Implements `FUNCTION RESTORE`. Closes #2401.

* chore: tidy code

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

---------

Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: monkey92t <golang@88.com>
2023-03-09 23:01:37 +08:00
Chayim cbfe6cd076
Allowing for running tests on a port other than the fixed 6380 (#2466)
* Allowing for redis on a specified port

* updating the readme

---------

Co-authored-by: Vladimir Mihailenco <vladimir.webdev@gmail.com>
Co-authored-by: Monkey <golang@88.com>
2023-03-06 21:31:39 +08:00
Monkey ad89a97fdc
chore: update go mod, Upgrade golang.org/x/net version to 0.7.0 (#2476)
Signed-off-by: monkey92t <golang@88.com>
2023-03-06 19:42:42 +08:00
Jens Fosgerau 9664fd2359
feat(zadd): add ZAddLT and ZAddGT (#2429)
Co-authored-by: Vladimir Mihailenco <vladimir.webdev@gmail.com>
2023-03-04 09:03:14 +02:00
Monkey 73d939e7bf
test: remove testify (#2463)
* test: remove testify

Signed-off-by: monkey92t <golang@88.com>
2023-02-28 14:56:41 +08:00
Monkey e309eaf915
docs: add reading lag field comment (#2451)
Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: Vladimir Mihailenco <vladimir.webdev@gmail.com>
2023-02-24 20:21:12 +08:00
Chandra Eepuri 6ec458549e
Pointer -> Ptr (#2458) 2023-02-24 13:47:58 +08:00
YuGan 6045d2e456
Add support for BZMPOP (#2456)
* Add support for BZMPOP

* Add BZMPOP command comment
2023-02-23 19:25:41 +08:00
Anurag Bandyopadhyay 621c02c583
Adding support for ZMPOP command (#2408)
* feat: add ZMPOP command

* fix: reply reading string

* fix: evaluating a test tweak

* fix: test fix

* fix: reverting to debug

* fix: test fix

* fix: remove old implementation

* feat: adding ZMPOP and tests

* feat: modifying ZMpopCmd

* fix: fix test

* fix: test removal check

* fix: fix testS

* Adding more tests

* fix: using redis.Nil instead of string

* fix: renaming command to ZArrayWithKeyCmd to match the standard

* feat: updated ZArrayWithKeyCmd to ZSliceWithKeyCmd

* feat: adding help strings

---------

Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com>
Co-authored-by: Chayim <chayim@users.noreply.github.com>
2023-02-23 01:38:51 +08:00
Chayim f95bdb8a8b
redis 7.0.8 in tests (#2450)
Co-authored-by: Monkey <golang@88.com>
2023-02-19 19:42:18 +08:00
Timofey 3b5361dc10
fix: lag can be null (#2448)
see 383d902ce6/src/t_stream.c (L1456)
2023-02-17 21:05:44 +08:00
ZhiQiang Li bd0d1c2293
Add support for BLMPOP (#2442)
* Add support for BLMPOP
2023-02-14 23:50:51 +08:00
Monkey d2c53bd2a5
refactor: change ListElementCmd to KeyValuesCmd. (#2443)
* refactor: change ListElementCmd to KeyValuesCmd

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

* KeyValuesCmd.val are modified to pointers

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

* recover KeyValuesCmd API

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

---------

Signed-off-by: monkey92t <golang@88.com>
2023-02-14 21:52:56 +08:00
Monkey 3532f2a414
fix: limit the number of connections created (#2441)
* fix: limit the number of connections created

Signed-off-by: monkey92t <golang@88.com>
2023-02-14 18:01:53 +08:00
Anurag Bandyopadhyay 0d306237c7
Add support for LMPOP (#2440)
* feat: add lmpop command
2023-02-13 23:02:14 +08:00
Monkey 08b4cc5f4b
feat: remove pool unused fields (#2438)
Signed-off-by: monkey92t <golang@88.com>
2023-02-12 18:50:25 +08:00
Vladimir Mihailenco 2bed94510b
chore: add Chinese translation (#2436) 2023-02-11 17:32:44 +08:00
dependabot[bot] 345ad7598a
chore(deps): bump github.com/bsm/gomega from 1.20.0 to 1.26.0 (#2421)
Bumps [github.com/bsm/gomega](https://github.com/bsm/gomega) from 1.20.0 to 1.26.0.
- [Release notes](https://github.com/bsm/gomega/releases)
- [Commits](https://github.com/bsm/gomega/compare/v1.20.0...v1.26.0)

---
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>
2023-02-08 20:50:55 +08:00
dependabot[bot] 247ef35a02
chore(deps): bump github.com/bsm/ginkgo/v2 from 2.5.0 to 2.7.0 (#2420)
Bumps [github.com/bsm/ginkgo/v2](https://github.com/bsm/ginkgo) from 2.5.0 to 2.7.0.
- [Release notes](https://github.com/bsm/ginkgo/releases)
- [Commits](https://github.com/bsm/ginkgo/compare/v2.5.0...v2.7.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: Monkey <golang@88.com>
2023-02-08 20:31:43 +08:00
Monkey 1cb89d7f3b
test: update go mod before testing(go mod tidy) (#2423) 2023-02-08 19:52:04 +08:00
Lucas Caparelli 206ad44196
chore: bump Go to 1.18 (#2428) 2023-02-08 09:07:42 +02:00
Monkey 8db6eeed27
feat(scan): scan time.Time sets the default decoding (#2413)
* feat(scan): scan time.Time uses `UnmarshalText(RFC3339)` interface decoding by default
2023-02-07 20:23:39 +08:00