Doctrine\Common\Cache\RedisCache::getSerializerValue PHP Method

getSerializerValue() protected method

Returns the serializer constant to use. If Redis is compiled with igbinary support, that is used. Otherwise the default PHP serializer is used.
protected getSerializerValue ( ) : integer
return integer One of the Redis::SERIALIZER_* constants
    protected function getSerializerValue()
    {
        if (defined('HHVM_VERSION')) {
            return Redis::SERIALIZER_PHP;
        }
        if (defined('Redis::SERIALIZER_IGBINARY') && extension_loaded('igbinary')) {
            return Redis::SERIALIZER_IGBINARY;
        }
        return Redis::SERIALIZER_PHP;
    }