calvinlam / laravel-multiple-cache-driver
Cache data to Redis and Database
dev-master
2020-09-22 09:06 UTC
Requires
- php: ^5.6 || ^7.0
- illuminate/support: ^5.3
This package is auto-updated.
Last update: 2025-06-22 19:21:47 UTC
README
Cache your data to Redis and Database. Get your data from Redis unless its empty.
Requirement
- Laravel 6.0+
- Reids
- MySQL
Installation
composer require
- require the package
- add
CacheServiceProvider
to laravel providers inconfig/app.php
. - change your cache driver to
multiple-driver
inconfig/cache.php
like
'stores' => [ 'redis' =>[ 'driver' => 'multiple-driver', ... ], ],