ms-auth/pkg/external/valkey/valkey.go
Vyacheslav1557 93eaf89d78 refactor:
2024-10-09 22:07:38 +05:00

13 lines
222 B
Go

package valkey
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)
}