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

ActiveLibrary[Caching](/categories/caching)

hikarine3/laravel-redis-fallback
================================

Laravel 8 redis cache fallback to array

1.0.4(5y ago)149↓100%2MITPHPPHP &gt;=7.0

Since Oct 31Pushed 5y ago1 watchersCompare

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

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

Redis cache fallback package for Laravel 8 / Laravel 8的Redis缓存后备软件包 / Redisが落ちてもLaravelを落さない為のパッケージ(Laravel 8対応)
================================================================================================================

[](#redis-cache-fallback-package-for-laravel-8--laravel-8的redis缓存后备软件包--redisが落ちてもlaravelを落さない為のパッケージlaravel-8対応)

Purpose of this package / 该包装的目的 / このパッケージの目的
---------------------------------------------

[](#purpose-of-this-package--该包装的目的--このパッケージの目的)

(English) This package is for falling back to array if redis server is not available for cache of laravel.

Currently array is specified as falling back because it can store tagged data.

But please be careful that it is alsmost same with not using cache in terms of performance.

This is created referencing to  for

- making falling back package work with Laravel 8
- making falling back package work with tagging function

(中文) 如果redis服务器不可用于laravel的缓存，则此软件包用于回退到阵列。

当前将数组指定为回退，因为它可以存储标记的数据。

但是请注意，就性能而言，不使用缓存几乎是相同的。

参照  创建

- 使用Laravel 8使回退包工作
- 使用标签功能使后退包装起作用

(日本語) このパッケージはRedistが落ちた時に、Laravelがそれでも例外エラーを出さずに動かし続けさせる為のパッケージです。 色々用途に合うパッケージを探していましたが

- Laravel 8に対応してない
- タグを使ってる場合に対応していない

為、 を開始にあたってのコードとして参照して、そこからは自分で作る事にしました。

Redisが使えない場合、arrayがcacheの代わりの保存先として使われます。 結果として

- パフォーマンスの向上はほぼ期待できませんが、Redisが落ちてもシステムは稼働し続ける
- Redis復旧後の後始末をしなくても済む

という所に特徴があります

How to install &amp; set up / インストール・設定方法
-----------------------------------------

[](#how-to-install--set-up--インストール設定方法)

```
composer require hikarine3/laravel-redis-fallback;

```

(English) Replace the default cache service provider in config/app.php

(中文) 替换config/app.php中的默认缓存服务提供程序

(日本語) config/app.php の以下の部分を書き換えて下さい

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

Test
----

[](#test)

(English) You should test whether the system can run without exception even if redis service stopped.

(中文) 即使redis服务停止，也应该测试系统是否可以正常运行。

(日本語) Redisを落としても、システムがきちんと稼働することを確認の上で、使って下さい。

License / ライセンス / 执照
====================

[](#license--ライセンス--执照)

MIT

Author / 作者
===========

[](#author--作者)

Name / 名前 / 全名
--------------

[](#name--名前--全名)

Hajime Kurita

Twitter
-------

[](#twitter)

- EN:
- JP:

Techincoal web services / 提供してる技術関連Webサービス / Techincoal Web服务
-------------------------------------------------------------

[](#techincoal-web-services--提供してる技術関連webサービス--techincoal-web服务)

### VPS &amp; Infra comparison / VPS比較 / VPS比较

[](#vps--infra-comparison--vps比較--vps比较)

- EN:
- CN:
- JP:

### Programming Language Comparison / プログラミング言語比較 / 编程语言比较

[](#programming-language-comparison--プログラミング言語比較--编程语言比较)

- EN:
- CN:
- JP:

### OSS

[](#oss)

- Docker:
- Github:
- NPM:
- Perl:
- PHP:
- Python:

### Contributing to following web services (part of projects which I am contributing to as owner)

[](#contributing-to-following-web-services-part-of-projects-which-i-am-contributing-to-as-owner)

#### Japanese

[](#japanese)

-
-
-
-
-
-
-
-
-
-
-
-

#### English

[](#english)

-
-
-
-

#### Chinese

[](#chinese)

-
-
-

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

2

Last Release

2019d ago

### Community

Maintainers

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

---

Top Contributors

[![hikarine3](https://avatars.githubusercontent.com/u/197538?v=4)](https://github.com/hikarine3 "hikarine3 (8 commits)")

---

Tags

laravelarrayrediscachelaravel8

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

38679.0k](/packages/namoshek-laravel-redis-sentinel)[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)
