Set and Set* don't support custom type
oldme-git opened this issue · 1 comments
oldme-git commented
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)
OrHayat commented
i got hit by this bug today is there reason why the fix was not merged?