We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi:
I put rawkey use golang client , and my code is
cli, err := rawkv.NewClient(context.TODO(), []string{"xx.xx.xx.xx:2379"}, config.DefaultConfig().Security) if err != nil { panic(err) } defer cli.Close() var prefix = "prefix" for i := 0; i < 10; i++ { key := []byte(prefix + strconv.Itoa(i)) val := []byte("PingCAP" + strconv.Itoa(i)) err = cli.Put(context.TODO(), key, val) if err != nil { panic(err) } fmt.Printf("Successfully put %s:%s to tikv\n", key, val) val, err = cli.Get(context.TODO(), key) if err != nil { panic(err) } fmt.Printf("found val: %s for key: %s\n", val, key) }
I can get the key like "prefix0",but can not get from tcli
The text was updated successfully, but these errors were encountered:
Thank you for your report. tcli only supports transactional API now. maybe in the future, we can provide a rawkv mode.
Sorry, something went wrong.
working on it.
No branches or pull requests
hi:
I put rawkey use golang client , and my code is
I can get the key like "prefix0",but can not get from tcli
The text was updated successfully, but these errors were encountered: