Well, here's a workaround, the "nasty" way (not tested in production environment yet):
$redis = Redis::connection();
$host = $redis->getConnection()->getParameters()->host;
$port = $redis->getConnection()->getParameters()->port;
$fp = @fsockopen($host, $port);
if ( ! $fp) die('Redis server not responding at *' . $host . ':' . $port . '*');
If anyone knows a cleaner, more elegant way to do this, please let me know.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community