You are here

protected function Redis_Tests_Cache_PhpRedisWithEvalFlushUnitTestCase::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/PhpRedisWithEvalFlushUnitTestCase.test, line 14

Class

Redis_Tests_Cache_PhpRedisWithEvalFlushUnitTestCase

Code

protected function getClientInterface() {
  if (extension_loaded('redis') && class_exists('Redis')) {
    $GLOBALS['conf']['redis_eval_enabled'] = true;
    return 'PhpRedis';
  }
}