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

Method RestoreReplace

generic_commands.go:254–265  ·  view source on GitHub ↗
(ctx context.Context, key string, ttl time.Duration, value string)

Source from the content-addressed store, hash-verified

252}
253
254func (c cmdable) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd {
255 cmd := NewStatusCmd(
256 ctx,
257 "restore",
258 key,
259 formatMs(ctx, ttl),
260 value,
261 "replace",
262 )
263 _ = c(ctx, cmd)
264 return cmd
265}
266
267type Sort struct {
268 By string

Callers

nothing calls this directly

Calls 2

NewStatusCmdFunction · 0.85
formatMsFunction · 0.85

Tested by

no test coverage detected