PHPackages                             hxd/redis-sentinel-switch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. hxd/redis-sentinel-switch

ActiveLibrary[Caching](/categories/caching)

hxd/redis-sentinel-switch
=========================

Redis sentinel switch, auto switch config redis standalone and sentinel

v1.0.0(3y ago)3196MITPHPPHP ^7.1|^7.2|^7.3|^7.4|^8.0|^8.1

Since May 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/xuandung38/redis-sentinel-switch)[ Packagist](https://packagist.org/packages/hxd/redis-sentinel-switch)[ RSS](/packages/hxd-redis-sentinel-switch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Redis Sentinel Switch
---------------------

[](#redis-sentinel-switch)

> Package dùng để tự động switch giữa redis standalone qua sentinel cho laravel.

\*\*Nguyên lý hoạt động: \*\*

> Package này đơn giản chỉ over-write lại config mặc định của laravel để predis nhận biết được các cụm sentinel

### Hướng dẫn

[](#hướng-dẫn)

**Cài đặt package:**

```
composer require hxd/redis-sentinel-switch
```

Bạn cần config các biến môi trường sau vào `.env`:

```
# Nếu bạn để null thì mặc định laravel sử dụng standalone
REDIS_REPLICATION=sentinel

#Cụm sentinel master hoặc standalone
REDIS_HOST=_master_sentinel_host_
REDIS_PORT=26379
REDIS_PASSWORD=
REDIS_TIMEOUT=0.1

# Cluster name
REDIS_SENTINEL_SERVICE=mymaster
REDIS_SENTINEL_TIMEOUT=0.1
# Các cụm Sentinel Slave
REDIS_SENTINEL=tcp://slave_sentinel_1:26379,tcp://slave_sentinel_2:26379
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b85c535ecb159be16b5d0fe166eaf263de9ac16ddb276ac8ec50eff4e157462?d=identicon)[xuandung38](/maintainers/xuandung38)

---

Top Contributors

[![xuandung38](https://avatars.githubusercontent.com/u/8670315?v=4)](https://github.com/xuandung38 "xuandung38 (1 commits)")

### Embed Badge

![Health badge](/badges/hxd-redis-sentinel-switch/health.svg)

```
[![Health](https://phpackages.com/badges/hxd-redis-sentinel-switch/health.svg)](https://phpackages.com/packages/hxd-redis-sentinel-switch)
```

###  Alternatives

[rhubarbgroup/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.

51795.3k1](/packages/rhubarbgroup-redis-cache)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

272.6M13](/packages/cache-predis-adapter)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.1M5](/packages/symfony-bundles-redis-bundle)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
