public static function Redis_Client::getClass in Redis 7.3
Same name and namespace in other branches
- 7.2 lib/Redis/Client.php \Redis_Client::getClass()
Get specific class implementing the current client usage for the specific asked core subsystem.
Parameters
string $system: One of the Redis_Client::IMPL_* constant.
string $clientName: Client name, if fixed.
Return value
string Class name, if found.
7 calls to Redis_Client::getClass()
- Redis_Cache::__construct in lib/
Redis/ Cache.php - Redis_Client::getManager in lib/
Redis/ Client.php - Get client manager
- Redis_Lock::getBackend in lib/
Redis/ Lock.php - Get actual lock backend.
- redis_path_backend_get in ./
redis.path.inc - Get Redis path lookup backend.
- Redis_Queue::__construct in lib/
Redis/ Queue.php - Default contructor
File
- lib/
Redis/ Client.php, line 230
Class
- Redis_Client
- This static class only reason to exist is to tie Drupal global configuration to OOP driven code of this module: it will handle everything that must be read from global configuration and let other components live without any existence of it
Code
public static function getClass($system) {
$class = $system . self::getClientInterfaceName();
if (!class_exists($class)) {
throw new Exception(sprintf("Class '%s' does not exist", $class));
}
return $class;
}