mirror of
https://github.com/predis/predis.git
synced 2026-09-15 12:57:10 +00:00
Promote the profile for Redis 2.2 as stable and use it as the default one for the client.
This commit is contained in:
+8
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user