12 lines
227 B
Go
12 lines
227 B
Go
package redis
|
|
|
|
// 更新filed或insert 更新消息是否已读
|
|
func (r *Client) UpSertMap(key string, fileds map[string]interface{}) {
|
|
for k, v := range fileds {
|
|
if k == "" {
|
|
continue
|
|
}
|
|
r.client.HSet(key, k, v)
|
|
}
|
|
}
|