0
0

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 5 years have passed since last update.

公式ドキュメントの内容が大分古くなっており、redisの操作はプラグイン不要でherokuコマンドに統合されている。
https://devcenter.heroku.com/articles/heroku-redis

$ heroku redis --help
Usage: heroku redis:info [DATABASE]

gets information about redis

 -a, --app APP       # app to run command against
 -r, --remote REMOTE # git remote of app to run command against

Additional commands, type "heroku help COMMAND" for more details:

  redis:cli [DATABASE]          #  opens a redis prompt
  redis:credentials [DATABASE]  #  display credentials information
  redis:info [DATABASE]         #  gets information about redis
  redis:maintenance [DATABASE]  #  manage maintenance windows
  redis:maxmemory [DATABASE]    #  set the key eviction policy
  redis:promote DATABASE        #  sets DATABASE as your REDIS_URL
  redis:timeout [DATABASE]      #  set the number of seconds to wait before killing idle connections
  redis:wait [DATABASE]         #  wait for Redis instance to be available

よく使う機能など

認証情報の確認

認証情報を確認する。公式のダッシュボードのデザイン修正でCredeintialが確認できなくなったので重宝する。

$ heroku redis:credential

CLIでの接続

CLIからREDISへの接続を行う際に

$ heroku redis:cli

メンテナンス関連の機能

$ heroku redis:maintenance --help
Usage: heroku redis:maintenance [DATABASE]

manage maintenance windows

 -a, --app APP       # app to run command against
 -f, --force         # start maintenance without entering application maintenance mode
 -r, --remote REMOTE # git remote of app to run command against
 -w, --window WINDOW # set weekly UTC maintenance window
 --run               # start maintenance

Set or change the maintenance window for your Redis instance

メンテナンス関連機能。 -fオプションや--runオプションでメンテナンス手動実行可能

メンテナンス時間をいじりたいときには -w オプションで。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?