content/commands/dbsize.md
{{< note >}} This command's behavior varies in clustered Redis environments. See the [multi-key operations]({{< relref "/develop/using-commands/multi-key-operations" >}}) page for more information. {{< /note >}}
Return the number of keys in the currently-selected database.
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="dbsize-return-info" tab1="RESP2" tab2="RESP3" >}}
Integer reply: the number of keys in the currently-selected database.
-tab-sep-
Integer reply: the number of keys in the currently-selected database.
{{< /multitabs >}}