protected function Redis_Tests_Cache_PredisWithEvalFlushUnitTestCase::getClientInterface in Redis 7.2
Set up the Redis configuration
Set up the needed variables using variable_set() if necessary.
Return value
string Client interface or null if not exists
Overrides Redis_Tests_AbstractUnitTestCase::getClientInterface
File
- lib/
Redis/ Tests/ Cache/ PredisWithEvalFlushUnitTestCase.test, line 14
Class
Code
protected function getClientInterface() {
Redis_Client_Predis::setPredisAutoload();
if (class_exists('Predis\\Client')) {
$GLOBALS['conf']['redis_eval_enabled'] = true;
return 'Predis';
}
}