Skip to content

Instantly share code, notes, and snippets.

@caalberts
Created December 27, 2017 15:10
Show Gist options
  • Save caalberts/70e30825cc869b2483d176272131a21d to your computer and use it in GitHub Desktop.
Save caalberts/70e30825cc869b2483d176272131a21d to your computer and use it in GitHub Desktop.
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