/** @var \Illuminate\Cache\CacheManager $cache */
$cache = $app['cache'];
var_dump($cache->getDrivers());
$defaultCache = $cache->driver();
$arrayCache = $cache->driver('array');
$fileCache = $cache->driver('file');
var_dump($cache->getDrivers());
# or something like
# Cache:driver('...')
I didnt found a way to have two same type cache drivers to work simultaneously!
I've settled on using Cache::driver('file')-> for all my file caching needs. That's really amazing how simple, explicit, and easy to use it has been so far, Why is there nothing hinting this in the documentation?
Thank you so much!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community