Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/53684
Change subject: Allow having no serializer in RedisConnectionPool.
......................................................................
Allow having no serializer in RedisConnectionPool.
Change-Id: If367c26b6b19374d1445c406851e2c5d3e5cc634
---
M includes/clientpool/RedisConnectionPool.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/84/53684/1
diff --git a/includes/clientpool/RedisConnectionPool.php
b/includes/clientpool/RedisConnectionPool.php
index 2d6df0e..5c7c4f2 100644
--- a/includes/clientpool/RedisConnectionPool.php
+++ b/includes/clientpool/RedisConnectionPool.php
@@ -62,7 +62,7 @@
* 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 @@
$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."
);
}
--
To view, visit https://gerrit.wikimedia.org/r/53684
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If367c26b6b19374d1445c406851e2c5d3e5cc634
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits