From a646351d83a751f13c5f6c2c58c190e4688e1882 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 13 Mar 2013 14:28:06 -0700 Subject: [PATCH] Allow having no serializer in RedisConnectionPool. Change-Id: If367c26b6b19374d1445c406851e2c5d3e5cc634 --- includes/clientpool/RedisConnectionPool.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/clientpool/RedisConnectionPool.php b/includes/clientpool/RedisConnectionPool.php index 2d6df0ecf6..5c7c4f20b5 100644 --- a/includes/clientpool/RedisConnectionPool.php +++ b/includes/clientpool/RedisConnectionPool.php @@ -62,7 +62,7 @@ class RedisConnectionPool { * multiple web requests. False by default. * - password : The authentication password, will be sent to Redis in clear text. * Optional, if it is unspecified, no AUTH command will be sent. - * - serializer : Set to "php" or "igbinary". Default is "php". + * - serializer : Set to "php", "igbinary", or "none". Default is "php". * @param array $options */ protected function __construct( array $options ) { @@ -77,6 +77,8 @@ class RedisConnectionPool { $this->serializer = Redis::SERIALIZER_PHP; } elseif ( $options['serializer'] === 'igbinary' ) { $this->serializer = Redis::SERIALIZER_IGBINARY; + } elseif ( $options['serializer'] === 'none' ) { + $this->serializer = Redis::SERIALIZER_NONE; } else { throw new MWException( "Invalid serializer specified." ); } -- 2.20.1