protected function Redis_Tests_Cache_PredisFlushUnitTestCase::getClientInterface in Redis 7.2
Same name and namespace in other branches
- 7.3 lib/Redis/Tests/Cache/PredisFlushUnitTestCase.test \Redis_Tests_Cache_PredisFlushUnitTestCase::getClientInterface()
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/ PredisFlushUnitTestCase.test, line 14
Class
Code
protected function getClientInterface() {
Redis_Client_Predis::setPredisAutoload();
if (class_exists('Predis\\Client')) {
return 'Predis';
}
}