2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

redis 使われている データベース一覧を取得

Last updated at Posted at 2019-06-25

まずはポートを指定してredis-cliを起動。
(一般的には 6379)


/usr/local/bin/redis-cli -p 6363

Redisのパスワードを入力し、ログイン


AUTH yourredispass

ログイン完了したら info と入力し enter。
一般的には redis は 0〜15 まで使える。


db3:keys=1781819,expires=1781819,avg_ttl=5865146908
db4:keys=352381,expires=352381,avg_ttl=6014054315
db5:keys=46,expires=46,avg_ttl=34158613
db6:keys=2398,expires=2398,avg_ttl=84076031837
db7:keys=1121,expires=1054,avg_ttl=7406287
db10:keys=23296,expires=23296,avg_ttl=6397679837

これでどのDBを使っているか一目瞭然ですね。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?