Laravel 8 redis cache fallback to array
hikarine3/laravel-redis-fallback is a Laravel package for laravel 8 redis cache fallback to array.
It currently has 1 GitHub stars and 54 downloads on Packagist (latest version 1.0.4).
Install it with composer require hikarine3/laravel-redis-fallback.
Discover more Laravel packages by hikarine3
or browse all Laravel packages to compare alternatives.
Last updated
(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 https://github.com/24i/laravel-redis-fallback for
(中文) 如果redis服务器不可用于laravel的缓存,则此软件包用于回退到阵列。
当前将数组指定为回退,因为它可以存储标记的数据。
但是请注意,就性能而言,不使用缓存几乎是相同的。
参照 https://github.com/24i/laravel-redis-fallback 创建
(日本語) このパッケージはRedistが落ちた時に、Laravelがそれでも例外エラーを出さずに動かし続けさせる為のパッケージです。 色々用途に合うパッケージを探していましたが
為、 https://github.com/24i/laravel-redis-fallback を開始にあたってのコードとして参照して、そこからは自分で作る事にしました。
Redisが使えない場合、arrayがcacheの代わりの保存先として使われます。 結果として
という所に特徴があります
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
...
)
(English) You should test whether the system can run without exception even if redis service stopped.
(中文) 即使redis服务停止,也应该测试系统是否可以正常运行。
(日本語) Redisを落としても、システムがきちんと稼働することを確認の上で、使って下さい。
MIT
Hajime Kurita