Redis Config Set コマンド
Redis Config Set コマンドは、Redis サーバーの設定(configuration)を再起動せずに動的に調整できます。
これを使用して設定パラメータを変更したり、Redis の永続化(Persistence)方式を変更したりできます。
構文
redis Config Set コマンドの基本的な構文は次のとおりです:
redis 127.0.0.1:6379> CONFIG Set parameter value
利用可能なバージョン
>= 2.0.0
戻り値
設定が成功すると OK を返し、それ以外の場合はエラーを返します。
例
redis 127.0.0.1:6379> CONFIG GET slowlog-max-len 1) "slowlog-max-len" 2) "1024" redis 127.0.0.1:6379> CONFIG SET slowlog-max-len 10086 OK redis 127.0.0.1:6379> CONFIG GET slowlog-max-len 1) "slowlog-max-len" 2) "10086"
その他の拡張