protected function RedisCache::getSerializerValue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php \Doctrine\Common\Cache\RedisCache::getSerializerValue()
Returns the serializer constant to use. If Redis is compiled with igbinary support, that is used. Otherwise the default PHP serializer is used.
Return value
integer One of the Redis::SERIALIZER_* constants
1 call to RedisCache::getSerializerValue()
- RedisCache::setRedis in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ RedisCache.php - Sets the redis instance to use.
File
- vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ RedisCache.php, line 135
Class
- RedisCache
- Redis cache provider.
Namespace
Doctrine\Common\CacheCode
protected function getSerializerValue() {
if (defined('HHVM_VERSION')) {
return Redis::SERIALIZER_PHP;
}
return defined('Redis::SERIALIZER_IGBINARY') ? Redis::SERIALIZER_IGBINARY : Redis::SERIALIZER_PHP;
}