|
|
@ -55,11 +55,12 @@ func SetToRedis(host string, site map[string]string) error { |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
_, err = redisrpc.HSet(SITE_KEY, host, siteStr) |
|
|
|
_, err = redisrpc.HSet(SITE_KEY, host, string(siteStr)) |
|
|
|
|
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
func GetAll() ([]map[string]string, error) { |
|
|
|
|
|
|
|
list, err := redisrpc.HGetAll(SITE_KEY) |
|
|
@ -82,5 +83,8 @@ func GetAll() ([]map[string]string, error) { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return all, err |
|
|
|
} |
|
|
|
*/ |