[フレーム]
Docs Pricing
Login Book a meeting Try Redis

FLUSHDB

FLUSHDB [ASYNC | SYNC]
Available since:
Redis Open Source 1.0.0
Time complexity:
O(N) where N is the number of keys in the selected database
ACL categories:
@keyspace, @write, @slow, @dangerous,
Compatibility:
Redis Enterprise and Redis Cloud compatibility

Delete all the keys of the currently selected DB. This command never fails.

By default, FLUSHDB will synchronously flush all keys from the database. Starting with Redis 6.2, setting the lazyfree-lazy-user-flush configuration directive to "yes" changes the default flush mode to asynchronous.

It is possible to use one of the following modifiers to dictate the flushing mode explicitly:

Notes

Behavior change history

Redis Enterprise and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Standard
❌ Active-Active*
✅ Standard
❌ Active-Active
*Can use the Active-Active flush API request.

Return information

History

RATE THIS PAGE
Back to top ↑

AltStyle によって変換されたページ (->オリジナル) /