Skip to content

Redis Hset Struct #270

Closed
Closed
@tizips

Description

@tizips

Hello,

I encountered an issue with the following code:

type Template struct {
	BirthDate      carbon.Carbon  `redis:"birth_date" carbon:"type:date"` // 出生日期
}

*redis.Client.HSet(ctx, key, Template{}).Result()

golang version: 1.23

carbon version: v2.5.2

redis: v9.7.0

github.com/redis/go-redis/v9

redis: can't marshal carbon.Carbon (implement encoding.BinaryMarshaler)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReport a reproducible bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions