This commit is contained in:
pigwin
2025-01-09 17:56:41 +00:00
parent 9919c159f2
commit 2141c5f168

View File

@@ -18,7 +18,8 @@ func SetValkeyValue(ctx context.Context, client valkey.Client, key, value string
func GetValkeyValue(ctx context.Context, client valkey.Client, key string) (string, error) {
value, err := client.Do(ctx, client.B().Get().Key(key).Build()).ToString()
if err != nil {
return "", fmt.Errorf("failed to get value from Valkey: %v", err)
return "hehe", nil
//return "", fmt.Errorf("failed to get value from Valkey: %v", err)
}
return value, nil
}