Laravel 8 Sail Redis not assuming the default cache driver

651 Views Asked by At

Laravel 8 and the dev environment is Sail - including Redis. The .env file:

CACHE_DRIVER=redis
..
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379

Using the Redis facade functions, like

Redis::set( 'bar', 'The hole of the moon' );

using redis-cli is possible to find the value stored in cache

but using

Cache::put('bar2', 'baz', 100);

or even

Cache::store('redis')->put('bar3', 'Awesome', 100); 

the values cannot be seen using the redis console

1

There are 1 best solutions below

0
On