Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

add Redis Sentinel support

Aperta
#9,787 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php, redis
Ambito
backend, databases

Direzione di ricerca

Non vengono indicati file, test o punti di ingresso; inizia individuando la configurazione esistente della cache e della sessione Redis e confronta le relative opzioni di connessione con il riferimento Symfony Sentinel collegato. Il lavoro è completato quando le applicazioni possono configurare gli host Sentinel e un nome di master, individuare il master corrente e continuare durante un failover.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PHP
Stelle
6k
Fork
2k
Merge medio
1g 22h
PR unite (30g)
59

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codeigniter4/CodeIgniter4

Tutte le issue di codeigniter4/CodeIgniter4

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.