kevy4.0

DBSIZE

Return the number of keys across all shards.

DBSIZE
Group
Server
Since
1.0.0
Arity
exactly 1
Flags
readonly

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

← All commands