Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

add Redis Sentinel support

未關閉
#9,787 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
php, redis
領域
backend, databases

研究方向

未指定任何檔案、測試或進入點;請先找出現有的 Redis 快取與工作階段設定,並將其連線選項與連結的 Symfony Sentinel 參考進行比較。當應用程式可以設定 Sentinel 主機與 master 名稱、探索目前的 master,並在容錯移轉期間繼續運作時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

enhancement
PHP Version

8.4

CodeIgniter4 Version

4.6.3

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

apache

Database

SQLServer 2019

What happened?

CodeIgniter 4 currently supports Redis for cache and session management, but does not provide built-in support for Redis Sentinel. This limits high availability and automatic failover capabilities for applications using Redis clusters.

Steps to Reproduce
  1. Configure CodeIgniter 4 to use Redis for cache or session storage.
  2. Attempt to connect to a Redis cluster managed by Sentinel using the current configuration options.
  3. Observe that there is no way to specify Sentinel hosts or master name, and failover is not handled automatically.
Expected Output
  • CodeIgniter 4 should allow configuration of Redis Sentinel hosts and master name for cache and session management.
  • The framework should automatically discover the current master node via Sentinel and handle failover seamlessly.
  • Applications should remain highly available and continue to function even if the Redis master changes.
  • For reference, see how Symfony implements Redis Sentinel support:
    https://symfony.com/doc/current/components/cache/adapters/redis_adapter.html#configure-the-connection
Image
Anything else?

No response

主要語言
PHP
星號
6k
分支
2k
平均合併
1 天 22 小時
30 天內合併 PR
59

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

codeigniter4/CodeIgniter4 的其他 Issue

查看 codeigniter4/CodeIgniter4 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。