Skip to main content

DFLYCLUSTER FLUSHSLOTS

Syntax

DFLYCLUSTER FLUSHSLOTS start_slot end_slot [start_slot end_slot ...]

Time complexity: O(N) where N is the total number of keys in selected hash slots

ACL categories: @keyspace, @write, @slow, @dangerous

Delete all the keys of selected hash slots. This command never fails.

Note: command only deletes keys that were present at the time the command was invoked. Keys created during an asynchronous flush will be unaffected.

Return

Simple string reply: OK.