Redis-server-dbsize

提供:Dev Guides
移動先:案内検索

Redis-Server Dbsizeコマンド

Redis DBSIZE コマンドを使用して、選択したデータベースのキーの数を取得します。

戻り値

整数の返信。

構文

以下は、Redis DBSIZE コマンドの基本構文です。

redis 127.0.0.1:6379> DBSIZE

redis 127.0.0.1:6379> DBSIZE
(integer) 147