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