MCPcopy
hub / github.com/redis/go-redis / Migrate

Method Migrate

generic_commands.go:144–157  ·  view source on GitHub ↗
(ctx context.Context, host, port, key string, db int, timeout time.Duration)

Source from the content-addressed store, hash-verified

142}
143
144func (c cmdable) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd {
145 cmd := NewStatusCmd(
146 ctx,
147 "migrate",
148 host,
149 port,
150 key,
151 db,
152 formatMs(ctx, timeout),
153 )
154 cmd.setReadTimeout(timeout)
155 _ = c(ctx, cmd)
156 return cmd
157}
158
159func (c cmdable) Move(ctx context.Context, key string, db int) *BoolCmd {
160 cmd := NewBoolCmd(ctx, "move", key, db)

Callers

nothing calls this directly

Calls 3

NewStatusCmdFunction · 0.85
formatMsFunction · 0.85
setReadTimeoutMethod · 0.80

Tested by

no test coverage detected