Redis-server-dbsize

提供:Dev Guides
2020年6月22日 (月) 22:57時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

Redis-Server Dbsizeコマンド

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

戻り値

整数の返信。

構文

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

redis 127.0.0.1:6379> DBSIZE

redis 127.0.0.1:6379> DBSIZE
(integer) 147