private static function loadSerializationType($type)
    {
        $types = array(
            'default' => \Redis::SERIALIZER_NONE,
            'none' => \Redis::SERIALIZER_NONE,
            'php' => \Redis::SERIALIZER_PHP
        );

        if (defined('Redis::SERIALIZER_IGBINARY')) {
            $types['igbinary'] = \Redis::SERIALIZER_IGBINARY;
        }

        if (array_key_exists($type, $types)) {
            return $types[$type];
        }

        throw new InvalidConfigurationException(sprintf('%s in not a valid serializer. Valid serializers: %s', $type, implode(', ', array_keys($types))));
    }
private static function loadSerializationType($type)
    {
        $types = array(
            'default' => \Redis::SERIALIZER_NONE,
            'none' => \Redis::SERIALIZER_NONE,
            'php' => \Redis::SERIALIZER_PHP
        );

        if (defined('Redis::SERIALIZER_IGBINARY')) {
            $types['igbinary'] = \Redis::SERIALIZER_IGBINARY;
        }

        if (array_key_exists($type, $types)) {
            return $types[$type];
        }

        throw new InvalidConfigurationException(sprintf('%s in not a valid serializer. Valid serializers: %s', $type, implode(', ', array_keys($types))));
    }
private static function loadSerializationType ( $ type ) { $ types = array ( 'default' => \ Redis :: SERIALIZER_NONE , 'none' => \ Redis :: SERIALIZER_NONE , 'php' => \ Redis :: SERIALIZER_PHP ) ; if ( defined ( 'Redis::SERIALIZER_IGBINARY' ) ) { $ types [ 'igbinary' ] = \ Redis :: SERIALIZER_IGBINARY ; } if ( array_key_exists ( $ type , $ types ) ) { return $ types [ $ type ] ; } throw new InvalidConfigurationException ( sprintf ( '%s in not a valid serializer. Valid serializers: %s' , $ type , implode ( ', ' , array_keys ( $ types ) ) ) ) ; }
Load the correct serializer for Redis

@param string $type

@return string
@throws InvalidConfigurationException
Load the correct serializer for Redis