fulfillment / laravel-cache-fallback
Provides fallback mechanisms for cache handlers
2.1.0
2021-03-09 16:03 UTC
Requires
- php: ~5.6|~7.0
- illuminate/cache: ~5.1
- illuminate/log: ~5.1
Requires (Dev)
- mockery/mockery: ^0.9.4
- orchestra/testbench: ^3.2.2
- phpunit/phpunit: ^5.2.9
This package is auto-updated.
Last update: 2024-11-18 18:49:01 UTC
README
This is a fork of fingo/laravel-cache-fallback for maintaining compatibility with Laravel.
Package for falling back cache drivers if current is not available.
Be advised that if the last driver fails, normal laravel Error is thrown
Usage
Add fallback provider to config/app.php
Fingo\LaravelCacheFallback\CacheFallbackServiceProvider::class,
Default fallback order is: redis, memcached, database, cookie, file, array
If needed to change fallback order, publish vendors
php artisan vendor:publish --provider="Fingo\LaravelCacheFallback\CacheFallbackServiceProvider"
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Credits
License
The Apache license Version 2.0. Please see License File for more information.