/**
  * @param RedisConfig $config
  * @param string      $prefix
  *
  * @return RedisNotifConfig
  */
 public function create(RedisConfig $config, $prefix)
 {
     if (!is_string($prefix)) {
         trigger_error('prefix should be a string', E_USER_ERROR);
     }
     $options = array_merge($config->toArray(), ['prefix' => $prefix]);
     $configObject = new RedisNotifConfig();
     foreach ($options as $key => $value) {
         $configObject->{$key} = $value;
     }
     return $configObject;
 }
 public static function init()
 {
     self::$SERVER_TEST = array('master' => self::$MS_1, 'slaves' => array(self::$SL_1, self::$SL_2));
     self::$SERVER_COMMON = array('master' => self::$MS_1, 'slaves' => array(self::$SL_1, self::$SL_2));
     self::$SERVER_AX_TEST = array('master' => self::$MS_AX, 'slaves' => array(self::$MS_AX));
 }