In case of Redis failure, is that possible to instruct php predis (https://github.com/nrk/predis) to continue and to not die?
I have Redis to handle application cache, but the application can run without cache, it just hits the database heavier. I prefer to fallback to database then have the application dying. I cant find a way to instruct predis to continue on fail.
I thought in set the connection limit to about 5 seconds, if it cant connect to Redis the application should go on.
Is this possible?
Fatal error: Uncaught Predis\Connection\ConnectionException: Operation timed out [tcp://128.0.0.1:6379]