Skip to content

Commit

Permalink
feat(url): Add valkey and valkeys scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
jouir committed Dec 29, 2024
1 parent 784282a commit e26892e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions url.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ func ParseURL(str string) (opt ClientOption, err error) {
return dialer.Dial("unix", s)
}
opt.InitAddress = []string{strings.TrimSpace(u.Path)}
case "rediss":
case "rediss", "valkeys":
opt.TLSConfig = &tls.Config{
MinVersion: tls.VersionTLS12,
}
case "redis":
case "redis", "valkey":
default:
return opt, fmt.Errorf("valkey: invalid URL scheme: %s", u.Scheme)
}
Expand Down

0 comments on commit e26892e

Please sign in to comment.