Aaron McMillin
Aaron McMillin

Reputation: 2667

Does redis FLUSHALL ASYNC command block the caller?

I understand that using FLUSHALL ASYNC will start a new thread in redis to do the cleanup. But what is the state of redis when the command returns? I want to be sure that after issuing the command, any further operations are on the freshly flushed DB.

Upvotes: 0

Views: 253

Answers (1)

for_stack
for_stack

Reputation: 22886

Does redis FLUSHALL ASYNC command block the caller?

No. The caller will return immediately.

I want to be sure that after issuing the command, any further operations are on the freshly flushed DB

Yes, you are guaranteed that any further command will be operated on a new DB.

Upvotes: 2

Related Questions