@@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user