laravel | How to confirm which caching driver is being used?

Viewed 4620

I am trying to use redis in my application but I am not sure if my app is using redis or file driver as I can't create tags but I can create normal keys fine.

I have set CACHE_DRIVER=redis and also in my cache.php I have:

'default' => env('CACHE_DRIVER', 'redis'),

also in my database.php there is:

'redis' => [

    'client' => 'predis',

    'default' => [
        'host' => env('REDIS_HOST', '127.0.0.1'),
        'password' => env('REDIS_PASSWORD', null),
        'port' => env('REDIS_PORT', 6379),
        'database' => 0,
    ],

],

The reasons for my suspicion are I cannot create tags and running redis-cli flushall under homestead(ssh) does not seem to get rid of the cahce. I had to use Cache::flush() in laravel instead.

So How can I effectively find out which cache driver my application is using?

2 Answers
Related