fingo / laravel-cache-fallback
Provides fallback mechanisms for cache handlers
Installs: 6 338
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 5
Forks: 8
Open Issues: 4
Requires
- php: >=7.0
- illuminate/cache: 5.5.*
Requires (Dev)
- mockery/mockery: ~1.0
- orchestra/testbench: 3.5.*
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2021-03-20 00:00:15 UTC
README
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.