PHPackages                             pdeio/redis-driver-fallback - 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. pdeio/redis-driver-fallback

ActiveLaravel[Caching](/categories/caching)

pdeio/redis-driver-fallback
===========================

When the redis server stops, a second cache driver starts working. Laravel's cache can be cleared whenever the redis server is returned or the second cache driver is started. In this way, the cache system remains synchronized without the problem of loading the old cache registers.

v1.0.0(7y ago)23.5k4MITPHP

Since Apr 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pdeio/redis-driver-fallback)[ Packagist](https://packagist.org/packages/pdeio/redis-driver-fallback)[ RSS](/packages/pdeio-redis-driver-fallback/feed)WikiDiscussions master Synced 2d ago

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

REDIS CACHE DRIVER FALLBACK (Laravel 5.8.\* Package)
====================================================

[](#redis-cache-driver-fallback-laravel-58-package)

[![Version](https://camo.githubusercontent.com/87c336ca7a9a675247169dbd9c006b4d9d868afd37dc20132f61792611b3b586/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76312e7376673f6c6162656c3d7061636b6167697374266d6573736167653d76312e302e3026636f6c6f723d626c7565)](https://packagist.org/packages/pdeio/redis-driver-fallback)[![License](https://camo.githubusercontent.com/b18c099fa45672d63f8bd3fb572ef584d3525557edada7ca6cd1e16e65cd85fd/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76312e7376673f6c6162656c3d6c6963656e7365266d6573736167653d4d495426636f6c6f723d626c7565)](https://packagist.org/packages/pdeio/redis-driver-fallback)

When the redis server stops, a second cache driver starts working. Laravel's cache can be cleared whenever the redis server is returned or the second cache driver is started. In this way, the cache system remains synchronized without the problem of loading the old cache registers.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [License](#license)

Installation
------------

[](#installation)

1. In order to install Redis Drive Fallback, just run:

```
composer require pdeio/redis-driver-fallback

```

2. \[OPTIONAL\] To create the configuration file (config/redis-driver-fallback.php) run:

```
php artisan vendor:publish --provider="Pdeio\RedisDriverFallback\RedisDriverServiceProvider"

```

Configuration
-------------

[](#configuration)

Set the property values in the `config/redis-driver-fallback.php`.

```
/*
|--------------------------------------------------------------------------
| Fallback ON / OFF
|--------------------------------------------------------------------------
|
|
| Enable / disable the redis driver fallback to test if it is working.
|
| The Redis driver fallback only works if the selected cache driver is set to redis,
| otherwise even if this option is set to on, only the default laravel cache manager
| will works.
|
*/

'fallback_turn_on' => true,

/*
|--------------------------------------------------------------------------
| Cache Driver Fallback
|--------------------------------------------------------------------------
|
| This option controls the fallback cachedriver that temporarily replaces the redis cache.
|
| Supported: "apc", "array", "database", "file",
|            "memcached", "dynamodb"
|
*/

'fallback_driver' => 'file',

/*
|--------------------------------------------------------------------------
| Synchronization mode
|--------------------------------------------------------------------------
|
| Here it is possible to define the synchronization mode: when the redis server stops,
| cache of the new driver selected is cleared in order to remain updated.
| When the redis returns, the redis cache is cleared before running again.
| This way, you don't run the risk of downloading not updated data from the cache.
|
| Set true, to activate the synchronization mode.
*/

'sync_mode' => false,

/*
|--------------------------------------------------------------------------
| Alert email
|--------------------------------------------------------------------------
|
| You have the option to send yourself an email with a default text,
| whenever the redis server should fall.
|
| In case of problems with the mail service, it is possible to catch the error
| without interrupting the entire cache request. Set "catch_error" to true, so a
| log error will be saved in "app/storage/app/redis/mails_error.log" with more
| details. If you set this option to false, laravel will force to send e-mails
| and an error exception will interrupt the request with an error exception page.
| It is recommended to leave this option on false, in development mode.
|
| You can edit the email template, if you want.
| In the folder "views/pdeio/redis-driver-fallback-email-template/alert.blade.php".
| If you delete this folder, the application does not crash, but cannot be sent
| any email from this package. You can use the redis event that is triggered when
| the redis server stops.
|
| It is recomended that you use the event ('redis.unvailable') which is fired
| whenever the redis stops working, to send the email through your controller
| and using your laravel queues.
*/

'email_config' => [
    'send_email' => false,
    'to' => 'email@email.com',
    'catch_error' => false,
]

```

License
-------

[](#license)

Redis Driver Fallback is free software distributed under the terms of the MIT license.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

2595d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdd7ded851b8a35062817f9fd852fc08042eade0d7f195b09a571662423a0215?d=identicon)[pdeio](/maintainers/pdeio)

---

Top Contributors

[![pdeio](https://avatars.githubusercontent.com/u/17225572?v=4)](https://github.com/pdeio "pdeio (14 commits)")

---

Tags

cachecache-fallbacklaravellaravel58pdeioredisredis-cache-fallbackredis-serverrediscachefilelaravel5laravel58pdeio

### Embed Badge

![Health badge](/badges/pdeio-redis-driver-fallback/health.svg)

```
[![Health](https://phpackages.com/badges/pdeio-redis-driver-fallback/health.svg)](https://phpackages.com/packages/pdeio-redis-driver-fallback)
```

###  Alternatives

[matomo/cache

PHP caching library based on Doctrine cache

38854.1k4](/packages/matomo-cache)[vink/nova-cache-card

Manage your application's cache from a handy Laravel Nova dashboard card.

26317.3k1](/packages/vink-nova-cache-card)[cache/redis-adapter

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

523.9M27](/packages/cache-redis-adapter)[garyr/memento

Lightweight cache library

186.6k1](/packages/garyr-memento)[ihor/cachalot

Cache a lot in a proper way (APC, XCache, Memcached, Redis, Couchbase)

2528.1k](/packages/ihor-cachalot)[bnomei/kirby3-redis-cachedriver

Advanced Redis cache-driver with in-memory store, transactions and preloading

101.7k](/packages/bnomei-kirby3-redis-cachedriver)

PHPackages © 2026

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