Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Use \RedisSentinel instead of Credis

オープン
#146 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, redis
領域
backend, databases

調査の方向性

プラグイン内でCredisとSentinelパスを検索し、phpredis \RedisSentinelとgetMasterAddrByName()がどのように使用されているかを確認してください。置き換えによってSentinelマスターの検出と通常のRedis操作が維持されることを確認し、作業完了とみなす前に、プラグインに既存のチェックまたはテストスイートを検証してください。

索引モデルが issue の本文から書いたものです。

説明

enhancement

The usages of a Redis library are very inconsistent.

Having 1 Redis server without sentinel --> phpredis with \Redis
Having X Redis server in a cluster --> not supported
Having X Redis server with sentinel --> Credis in standalone mode

In Sentinel mode, one of the Sentinel instances are picked, getMasterAddrByName() is called and then a connection is established to the master where all all/write operations are done like in normal Redis mode.

Credis uses phpredis by default if available, but phpredis also has a \RedisSentinel class which has the getMasterAddrByName() function.

TL;DR: Credis is only used in Sentinel mode and can get replaced by phpredis, which is required by QueuedTracking anyway.

主要言語
PHP
スター
87
フォーク
42
平均マージ
1日 13時間
マージ済み PR(30日)
10

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

matomo-org/plugin-QueuedTracking のほかの issue

matomo-org/plugin-QueuedTracking の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。