-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
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
Add Redis CMD for data insert #709
Conversation
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
pkg/data/redis.go
Outdated
if err != nil { | ||
return err | ||
} | ||
fmt.Printf("\nExpected keys: %d .Redis database %s/%s contains: %d keys\n", rows, opts.db.Namespace, opts.db.Name, totalKeys) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if rows doesn't matched totalKey, we can show that. But if they matched, we should show some Success
type message to the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be exact match ? Because in Redis, we insert some keys for health check. That also comes when we take the total count. What about greater or equal ?
9ac5100
to
fa09948
Compare
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
func DropRedisDataCMD(f cmdutil.Factory) *cobra.Command { | ||
var dbName string | ||
|
||
rdVerifyCmd := &cobra.Command{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rdDropCMD
No description provided.