10
10

More than 5 years have passed since last update.

Redisコマンド覚え書き

Last updated at Posted at 2014-10-05

ホスト(-h)・ポート(-p)指定・マルチバイト対応(--raw)で接続
redis-cli -h xxx.xxx.xxx.xxx -p 6380 --raw

データベースの1番を指定して接続
redis-cli -n 1

以降のコマンドはredis-cliで接続中の場合はredis-cliは不要

有効期限を確認
redis-cli ttl [key]

有効期限付きで登録
redis-cli setex [key] [ttl(sec)] [value]

有効期限なしで登録
redis-cli set [key] [value]

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