function predis_client_get in Redis 7.3
Get Redis client for Predis library.
Return value
\Predis\Client
File
- ./
redis.module, line 68 - Redis module.
Code
function predis_client_get() {
if ('Predis' !== variable_get('redis_client_interface')) {
throw new \LogicException("Redis is not configured to use the Predis client");
}
return Redis_Client::getClient();
}