DBSIZE
Return the number of keys across all shards.
DBSIZE
Complexity
O(S) — one message per shard, each answering O(1) from its map length; NOT O(N)
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
Compatible
Behaves as Redis does.
See also
BGREWRITEAOFBGSAVECLIENTCLUSTERCOMMANDCONFIGDEBUGFLUSHALLFLUSHDBINFOMEMORYSAVESHUTDOWNSLOWLOG