ms-auth/pkg/valkey_client.go
Vyacheslav1557 3b03447d2f feat(user):
2024-12-30 20:04:26 +05:00

13 lines
219 B
Go

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