Help us understand the problem. What is going on with this article?

Heroku Redis Command

More than 3 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 オプションで。

mikakane
PHPerです。がんばります。
http://chatbox-inc.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away