Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PetroGromovo's avatar

In which cases using of redis in .env parameters gives profit ?

In which cases having in .env parameters on laravel/livewire site :

SESSION_DRIVER=redis # THESE ARE DIFFERENT PARAMETERS ?!
CACHE_DRIVER=redis

gives advantages on dev/prod? With big data kept in redis? How to test/calculate profit of using redis ?

        "laravel/framework": "^10.48.4",
        "predis/predis": "^2.2",

Thanks in advance!

0 likes
1 reply
JussiMannisto's avatar

Redis is a separate program, an in-memory key-value store. It can be used as a driver for a lot of things in Laravel, such as sessions, cache, and queues. You'd use it for the performance benefits.

If you want to use Redis, you need to install and run it separately. I also recommend installing and using the phpredis extension instead of the predis/predis package, since the extension is a lot faster.

1 like

Please or to participate in this conversation.