Browse Source

删除无用方法

master v0.4.1
guzeng 3 years ago
parent
commit
6945a1df44
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      cache.go

+ 5
- 1
cache.go View File

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

Loading…
Cancel
Save