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

Method Restore

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

Source from the content-addressed store, hash-verified

240}
241
242func (c cmdable) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd {
243 cmd := NewStatusCmd(
244 ctx,
245 "restore",
246 key,
247 formatMs(ctx, ttl),
248 value,
249 )
250 _ = c(ctx, cmd)
251 return cmd
252}
253
254func (c cmdable) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd {
255 cmd := NewStatusCmd(

Callers

nothing calls this directly

Calls 2

NewStatusCmdFunction · 0.85
formatMsFunction · 0.85

Tested by

no test coverage detected