Эх сурвалжийг харах

Add specific server profile alias for Redis 2.6.

Daniele Alessandri 13 жил өмнө
parent
commit
626520b836

+ 1 - 1
examples/MasterSlaveReplicationComplex.php

@@ -51,7 +51,7 @@ $parameters = array(
 
 $options = array(
     'profile' => function($options) {
-        $profile = ServerProfile::get('dev');
+        $profile = ServerProfile::get('2.6');
         $profile->defineCommand('hmgetall', 'HashMultipleGetAll');
 
         return $profile;

+ 1 - 1
examples/ServerSideScripting.php

@@ -39,7 +39,7 @@ LUA;
     }
 }
 
-$client = new Predis\Client($single_server, 'dev');
+$client = new Predis\Client($single_server, '2.6');
 
 $client->getProfile()->defineCommand('increx', 'IncrementExistingKey');
 

+ 1 - 0
lib/Predis/Profiles/ServerProfile.php

@@ -76,6 +76,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
             '2.0'     => 'Predis\Profiles\ServerVersion20',
             '2.2'     => 'Predis\Profiles\ServerVersion22',
             '2.4'     => 'Predis\Profiles\ServerVersion24',
+            '2.6'     => 'Predis\Profiles\ServerVersionNext',
             'default' => 'Predis\Profiles\ServerVersion24',
             'dev'     => 'Predis\Profiles\ServerVersionNext',
         );