PHPackages                             xtcat/laravel-redis-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. xtcat/laravel-redis-fallback

ActiveLibrary[Caching](/categories/caching)

xtcat/laravel-redis-fallback
============================

Laravel 5 redis cache fallback to file

1.2.3(8y ago)523.7k4MITPHPPHP &gt;=5.5.0

Since Mar 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/xtcat/laravel-redis-fallback)[ Packagist](https://packagist.org/packages/xtcat/laravel-redis-fallback)[ RSS](/packages/xtcat-laravel-redis-fallback/feed)WikiDiscussions master Synced 1mo ago

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

Redis cache fallback for Laravel 5
==================================

[](#redis-cache-fallback-for-laravel-5)

If you use Redis as cache driver on Laravel 5 and for some reason Redis server became unavailable, you will end up with a Connection Refused exception. This package simply checks for the connection and if test fails, cache is switched to file driver. As soon as Redis come back it will be used again.

How to use
----------

[](#how-to-use)

Install LaravelRedisFallback as a Composer package, adding this line to your composer.json:

```
"xtcat/laravel-redis-fallback": "dev-master"
```

and update your vendor folder running the `composer update ` command.

Replace the default cache service provider:

```
'providers' => array(
	...
	//'Illuminate\Cache\CacheServiceProvider',
	...
	\Xtcat\LaravelRedisFallback\LaravelRedisFallbackServiceProvider::class
	...
)
```

Events
------

[](#events)

You can listen to 'redis.unavailable' event in your listener, for example send an email to you when the redis server is down.

Enjoy!

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~144 days

Recently: every ~168 days

Total

7

Last Release

3202d ago

PHP version history (2 changes)v1.0.1PHP &gt;=5.4.0

1.1.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/12f3f04502b5fce7c73c051a2cb920facf705aac7eea879593c030eb54150905?d=identicon)[xtCat](/maintainers/xtCat)

---

Top Contributors

[![davidepedone](https://avatars.githubusercontent.com/u/2741896?v=4)](https://github.com/davidepedone "davidepedone (4 commits)")[![patrickbrouwers](https://avatars.githubusercontent.com/u/7728097?v=4)](https://github.com/patrickbrouwers "patrickbrouwers (4 commits)")[![xtcat](https://avatars.githubusercontent.com/u/1425622?v=4)](https://github.com/xtcat "xtcat (3 commits)")[![Sergiqg](https://avatars.githubusercontent.com/u/35771951?v=4)](https://github.com/Sergiqg "Sergiqg (2 commits)")[![szalaibpf](https://avatars.githubusercontent.com/u/185753708?v=4)](https://github.com/szalaibpf "szalaibpf (2 commits)")

---

Tags

laravelrediscachefilelaravel5

### Embed Badge

![Health badge](/badges/xtcat-laravel-redis-fallback/health.svg)

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

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[vink/nova-cache-card

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

26317.3k1](/packages/vink-nova-cache-card)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)

PHPackages © 2026

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