Permalink
Browse files

Fixed a problem with serializer.

With this commit, cache driver uses igbinary as default serializer. Other serializer options fails with ClassMetadata like object data.
  • Loading branch information...
o committed Mar 18, 2012
1 parent 43ec9bb commit 57e46ca2ad206dbeeac4d814333f46107bc65c8e
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Doctrine/Common/Cache/RedisCache.php
@@ -44,6 +44,7 @@ class RedisCache extends CacheProvider
*/
public function setRedis(Redis $redis)
{
+ $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_IGBINARY);
$this->redis = $redis;
}

0 comments on commit 57e46ca

Please sign in to comment.