Created
December 27, 2017 15:10
-
-
Save caalberts/70e30825cc869b2483d176272131a21d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "github.com/go-redis/redis" | |
type Redis struct { | |
*redis.Client | |
} | |
func (r *Redis) HGetAll(key string) (map[string]string, error) { | |
return r.Client.HGetAll(key).Result() | |
} | |
func (r *Redis) HMSet(key string, data map[string]interface{}) (string, error) { | |
return r.Client.HMSet(key, data).Result() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment