Promote the profile for Redis 2.2 as stable and use it as the default one for the client.

This commit is contained in:
Daniele Alessandri
2011-01-13 12:30:06 +01:00
parent 4e6ed1fd5b
commit b6d93b5b34
+8 -3
View File
@@ -1795,7 +1795,8 @@ abstract class ServerProfile implements IServerProfile {
return array(
'1.2' => '\Predis\Profiles\Server_v1_2',
'2.0' => '\Predis\Profiles\Server_v2_0',
'default' => '\Predis\Profiles\Server_v2_0',
'2.2' => '\Predis\Profiles\Server_v2_2',
'default' => '\Predis\Profiles\Server_v2_2',
'dev' => '\Predis\Profiles\Server_vNext',
);
}
@@ -2041,8 +2042,8 @@ class Server_v2_0 extends Server_v1_2 {
}
}
class Server_vNext extends Server_v2_0 {
public function getVersion() { return '2.1'; }
class Server_v2_2 extends Server_v2_0 {
public function getVersion() { return '2.2'; }
public function getSupportedCommands() {
return array_merge(parent::getSupportedCommands(), array(
/* transactions */
@@ -2071,6 +2072,10 @@ class Server_vNext extends Server_v2_0 {
}
}
class Server_vNext extends Server_v2_2 {
public function getVersion() { return 'DEV'; }
}
/* -------------------------------------------------------------------------- */
namespace Predis\Distribution;