如何使用Redix.v3将切片插入Redis数据库

Getting an error while inserting a slice into Redis database using redix.v3. What's redis command to insert a slice? SET or HMSET?

My code:

type Domain struct {
    ID         string `json:"ID,omitempty"`
    ParentID   string `json:"parentID,omitempty"`
    ParentType string `json:"parentType,omitempty"`
    Owner      string `json:"owner,omitempty"`
    PATEnabled string `json:"PATEnabled,omitempty"`
    Name       string `json:"name,omitempty"`
}

for _, domain := range domains {

    if err := client.Do(radix.FlatCmd(nil, "HMSET", domain.ID, domain)); err != nil {
        log.Println(err)

    }

Error message:

could not marshal value of type Domain