Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set and Set* don't support custom type #3104

Open
oldme-git opened this issue Sep 4, 2024 · 1 comment · May be fixed by #3105
Open

Set and Set* don't support custom type #3104

oldme-git opened this issue Sep 4, 2024 · 1 comment · May be fixed by #3105

Comments

@oldme-git
Copy link

func TestI(t *testing.T) {
  type myInt int
  var i myInt = 123

  err := rdb.Set(ctx, "key", i, 0).Err()
  if err != nil {
    t.Fatal(err)
  }
}

result: redis: can't marshal * (implement encoding.BinaryMarshaler)
@oldme-git oldme-git linked a pull request Sep 4, 2024 that will close this issue
@OrHayat
Copy link

OrHayat commented Jan 7, 2025

i got hit by this bug today is there reason why the fix was not merged?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants