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

Method WaitAOF

commands.go:299–304  ·  view source on GitHub ↗
(ctx context.Context, numLocal, numSlaves int, timeout time.Duration)

Source from the content-addressed store, hash-verified

297}
298
299func (c cmdable) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntCmd {
300 cmd := NewIntCmd(ctx, "waitAOF", numLocal, numSlaves, int(timeout/time.Millisecond))
301 cmd.setReadTimeout(timeout)
302 _ = c(ctx, cmd)
303 return cmd
304}
305
306func (c statefulCmdable) Select(ctx context.Context, index int) *StatusCmd {
307 cmd := NewStatusCmd(ctx, "select", index)

Callers 1

commands_test.goFile · 0.80

Calls 2

NewIntCmdFunction · 0.85
setReadTimeoutMethod · 0.80

Tested by

no test coverage detected