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

stueynet's avatar

Does redis caching require anything on than predis/predis?

I am wondering if using redis for caching will just work on any server if predis/predis is installed. Seems to work fine in Homestead and on Forge but our production server is not on Forge so I want to make sure Forge doesn't do anything in the background to get it ready for redis caching. Thanks!

0 likes
3 replies
martinbean's avatar

@stueynet Well, obviously the server will need Redis itself installed. The predis library is just a client to interact with Redis in PHP.

stueynet's avatar

Thanks @martinbean thats what I was thinking. So that means that homestead and forge automatically get that all up and running automagically, since it literally just worked after

composer require predis/predis

and then changing .env:

CACHE_DRIVER=redis

Please or to participate in this conversation.