diff --git a/valki/commands.go b/valki/commands.go index fe1c6ed..016a4ae 100644 --- a/valki/commands.go +++ b/valki/commands.go @@ -16,6 +16,8 @@ func SetValkeyValue(ctx context.Context, client valkey.Client, key, value string return nil } + + 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 {