ms-auth/pkg/valkey_client.go

13 lines
219 B
Go
Raw Normal View History

2024-12-30 15:04:26 +00:00
package pkg
2024-10-09 17:07:38 +00:00
import "github.com/valkey-io/valkey-go"
func NewValkeyClient(dsn string) (valkey.Client, error) {
opts, err := valkey.ParseURL(dsn)
if err != nil {
return nil, err
}
return valkey.NewClient(opts)
}