My project use File Cache as default driver. Is it a way to use Redis cache with tags directly? Something like that:
Cache::put('a', 1); // default File Cache used here
Cache::tags('tag')->put('b', 2) // Redis Cache
cache.php:
return [
'default' => 'file',
'stores' => [
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
],
'redis' => [
'driver' => 'redis',
'connection' => 'cache',
'lock_connection' => 'default',
],
],
];