hehe
This commit is contained in:
@@ -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) {
|
func GetValkeyValue(ctx context.Context, client valkey.Client, key string) (string, error) {
|
||||||
value, err := client.Do(ctx, client.B().Get().Key(key).Build()).ToString()
|
value, err := client.Do(ctx, client.B().Get().Key(key).Build()).ToString()
|
||||||
if err != nil {
|
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
|
return value, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user