RedisCommandExecutionException: ERR unknown command `CONFIG`

今回は、Redisを導入した時エラーをメモしていきたいと思います。

エラー内容

RedisCommandExecutionException: ERR unknown command `CONFIG`, with args beginning with: `GET`, `notify-keyspace-events`,

解決

キースペース通知イベント(notify-keyspace-events)というAWSのパラメータを有効にする必要がありますキースペース通知イベント(notify-keyspace-events)というAWSのパラメータを有効にする必要があルらしいです。

  /**
   * Spring SessionがAWS上のRedisのCONFIGを実行しないようにする
   * @return Spring SessionがAWS上のRedisのCONFIGを実行しない設定
   */
  @Bean
  public static ConfigureRedisAction configureRedisAction() {
    return ConfigureRedisAction.NO_OP;
  }

コメントを残す