Skip to content

Commit

Permalink
新增:本地缓存cacheMemory.List
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jul 11, 2024
1 parent 80082d7 commit 6343e55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ func GetString(key string) string {

// GetStrings 获取配置
func GetStrings(key string) []string {
return strings.Split(GetString(key), ",")
val := GetString(key)
if val == "" {
return nil
}
return strings.Split(val, ",")
}

// GetInt 获取配置
Expand Down

0 comments on commit 6343e55

Please sign in to comment.