|
@@ -8,39 +8,32 @@ class ServerVersion22 extends ServerProfile {
|
|
|
return array(
|
|
|
/* ---------------- Redis 1.2 ---------------- */
|
|
|
|
|
|
- /* miscellaneous commands */
|
|
|
- 'ping' => '\Predis\Commands\Ping',
|
|
|
- 'echo' => '\Predis\Commands\DoEcho',
|
|
|
- 'auth' => '\Predis\Commands\Auth',
|
|
|
-
|
|
|
- /* connection handling */
|
|
|
- 'quit' => '\Predis\Commands\Quit',
|
|
|
+ /* commands operating on the key space */
|
|
|
+ 'exists' => '\Predis\Commands\KeyExists',
|
|
|
+ 'del' => '\Predis\Commands\KeyDelete',
|
|
|
+ 'type' => '\Predis\Commands\KeyType',
|
|
|
+ 'keys' => '\Predis\Commands\KeyKeys',
|
|
|
+ 'randomkey' => '\Predis\Commands\KeyRandom',
|
|
|
+ 'rename' => '\Predis\Commands\KeyRename',
|
|
|
+ 'renamenx' => '\Predis\Commands\KeyRenamePreserve',
|
|
|
+ 'expire' => '\Predis\Commands\KeyExpire',
|
|
|
+ 'expireat' => '\Predis\Commands\KeyExpireAt',
|
|
|
+ 'ttl' => '\Predis\Commands\KeyTimeToLive',
|
|
|
+ 'move' => '\Predis\Commands\KeyMove',
|
|
|
+ 'sort' => '\Predis\Commands\KeySort',
|
|
|
|
|
|
/* commands operating on string values */
|
|
|
- 'set' => '\Predis\Commands\Set',
|
|
|
- 'setnx' => '\Predis\Commands\SetPreserve',
|
|
|
- 'mset' => '\Predis\Commands\SetMultiple',
|
|
|
- 'msetnx' => '\Predis\Commands\SetMultiplePreserve',
|
|
|
- 'get' => '\Predis\Commands\Get',
|
|
|
- 'mget' => '\Predis\Commands\GetMultiple',
|
|
|
- 'getset' => '\Predis\Commands\GetSet',
|
|
|
- 'incr' => '\Predis\Commands\Increment',
|
|
|
- 'incrby' => '\Predis\Commands\IncrementBy',
|
|
|
- 'decr' => '\Predis\Commands\Decrement',
|
|
|
- 'decrby' => '\Predis\Commands\DecrementBy',
|
|
|
- 'exists' => '\Predis\Commands\Exists',
|
|
|
- 'del' => '\Predis\Commands\Delete',
|
|
|
- 'type' => '\Predis\Commands\Type',
|
|
|
-
|
|
|
- /* commands operating on the key space */
|
|
|
- 'keys' => '\Predis\Commands\Keys',
|
|
|
- 'randomkey' => '\Predis\Commands\RandomKey',
|
|
|
- 'rename' => '\Predis\Commands\Rename',
|
|
|
- 'renamenx' => '\Predis\Commands\RenamePreserve',
|
|
|
- 'expire' => '\Predis\Commands\Expire',
|
|
|
- 'expireat' => '\Predis\Commands\ExpireAt',
|
|
|
- 'dbsize' => '\Predis\Commands\DatabaseSize',
|
|
|
- 'ttl' => '\Predis\Commands\TimeToLive',
|
|
|
+ 'set' => '\Predis\Commands\StringSet',
|
|
|
+ 'setnx' => '\Predis\Commands\StringSetPreserve',
|
|
|
+ 'mset' => '\Predis\Commands\StringSetMultiple',
|
|
|
+ 'msetnx' => '\Predis\Commands\StringSetMultiplePreserve',
|
|
|
+ 'get' => '\Predis\Commands\StringGet',
|
|
|
+ 'mget' => '\Predis\Commands\StringGetMultiple',
|
|
|
+ 'getset' => '\Predis\Commands\StringGetSet',
|
|
|
+ 'incr' => '\Predis\Commands\StringIncrement',
|
|
|
+ 'incrby' => '\Predis\Commands\StringIncrementBy',
|
|
|
+ 'decr' => '\Predis\Commands\StringDecrement',
|
|
|
+ 'decrby' => '\Predis\Commands\StringDecrementBy',
|
|
|
|
|
|
/* commands operating on lists */
|
|
|
'rpush' => '\Predis\Commands\ListPushTail',
|
|
@@ -82,39 +75,33 @@ class ServerVersion22 extends ServerProfile {
|
|
|
'zscore' => '\Predis\Commands\ZSetScore',
|
|
|
'zremrangebyscore' => '\Predis\Commands\ZSetRemoveRangeByScore',
|
|
|
|
|
|
- /* multiple databases handling commands */
|
|
|
- 'select' => '\Predis\Commands\SelectDatabase',
|
|
|
- 'move' => '\Predis\Commands\MoveKey',
|
|
|
- 'flushdb' => '\Predis\Commands\FlushDatabase',
|
|
|
- 'flushall' => '\Predis\Commands\FlushAll',
|
|
|
-
|
|
|
- /* sorting */
|
|
|
- 'sort' => '\Predis\Commands\Sort',
|
|
|
+ /* connection related commands */
|
|
|
+ 'ping' => '\Predis\Commands\ConnectionPing',
|
|
|
+ 'auth' => '\Predis\Commands\ConnectionAuth',
|
|
|
+ 'select' => '\Predis\Commands\ConnectionSelect',
|
|
|
+ 'echo' => '\Predis\Commands\ConnectionEcho',
|
|
|
+ 'quit' => '\Predis\Commands\ConnectionQuit',
|
|
|
|
|
|
/* remote server control commands */
|
|
|
- 'info' => '\Predis\Commands\Info',
|
|
|
- 'slaveof' => '\Predis\Commands\SlaveOf',
|
|
|
- 'monitor' => '\Predis\Commands\Monitor',
|
|
|
-
|
|
|
- /* persistence control commands */
|
|
|
- 'save' => '\Predis\Commands\Save',
|
|
|
- 'bgsave' => '\Predis\Commands\BackgroundSave',
|
|
|
- 'lastsave' => '\Predis\Commands\LastSave',
|
|
|
- 'shutdown' => '\Predis\Commands\Shutdown',
|
|
|
- 'bgrewriteaof' => '\Predis\Commands\BackgroundRewriteAppendOnlyFile',
|
|
|
+ 'info' => '\Predis\Commands\ServerInfo',
|
|
|
+ 'slaveof' => '\Predis\Commands\ServerSlaveOf',
|
|
|
+ 'monitor' => '\Predis\Commands\ServerMonitor',
|
|
|
+ 'dbsize' => '\Predis\Commands\ServerDatabaseSize',
|
|
|
+ 'flushdb' => '\Predis\Commands\ServerFlushDatabase',
|
|
|
+ 'flushall' => '\Predis\Commands\ServerFlushAll',
|
|
|
+ 'save' => '\Predis\Commands\ServerSave',
|
|
|
+ 'bgsave' => '\Predis\Commands\ServerBackgroundSave',
|
|
|
+ 'lastsave' => '\Predis\Commands\ServerLastSave',
|
|
|
+ 'shutdown' => '\Predis\Commands\ServerShutdown',
|
|
|
+ 'bgrewriteaof' => '\Predis\Commands\ServerBackgroundRewriteAOF',
|
|
|
|
|
|
|
|
|
/* ---------------- Redis 2.0 ---------------- */
|
|
|
|
|
|
- /* transactions */
|
|
|
- 'multi' => '\Predis\Commands\Multi',
|
|
|
- 'exec' => '\Predis\Commands\Exec',
|
|
|
- 'discard' => '\Predis\Commands\Discard',
|
|
|
-
|
|
|
/* commands operating on string values */
|
|
|
- 'setex' => '\Predis\Commands\SetExpire',
|
|
|
- 'append' => '\Predis\Commands\Append',
|
|
|
- 'substr' => '\Predis\Commands\Substr',
|
|
|
+ 'setex' => '\Predis\Commands\StringSetExpire',
|
|
|
+ 'append' => '\Predis\Commands\StringAppend',
|
|
|
+ 'substr' => '\Predis\Commands\StringSubstr',
|
|
|
|
|
|
/* commands operating on lists */
|
|
|
'blpop' => '\Predis\Commands\ListPopFirstBlocking',
|
|
@@ -142,32 +129,33 @@ class ServerVersion22 extends ServerProfile {
|
|
|
'hvals' => '\Predis\Commands\HashValues',
|
|
|
'hgetall' => '\Predis\Commands\HashGetAll',
|
|
|
|
|
|
+ /* transactions */
|
|
|
+ 'multi' => '\Predis\Commands\TransactionMulti',
|
|
|
+ 'exec' => '\Predis\Commands\TransactionExec',
|
|
|
+ 'discard' => '\Predis\Commands\TransactionDiscard',
|
|
|
+
|
|
|
/* publish - subscribe */
|
|
|
- 'subscribe' => '\Predis\Commands\Subscribe',
|
|
|
- 'unsubscribe' => '\Predis\Commands\Unsubscribe',
|
|
|
- 'psubscribe' => '\Predis\Commands\SubscribeByPattern',
|
|
|
- 'punsubscribe' => '\Predis\Commands\UnsubscribeByPattern',
|
|
|
- 'publish' => '\Predis\Commands\Publish',
|
|
|
+ 'subscribe' => '\Predis\Commands\PubSubSubscribe',
|
|
|
+ 'unsubscribe' => '\Predis\Commands\PubSubUnsubscribe',
|
|
|
+ 'psubscribe' => '\Predis\Commands\PubSubSubscribeByPattern',
|
|
|
+ 'punsubscribe' => '\Predis\Commands\PubSubUnsubscribeByPattern',
|
|
|
+ 'publish' => '\Predis\Commands\PubSubPublish',
|
|
|
|
|
|
/* remote server control commands */
|
|
|
- 'config' => '\Predis\Commands\Config',
|
|
|
+ 'config' => '\Predis\Commands\ServerConfig',
|
|
|
|
|
|
|
|
|
/* ---------------- Redis 2.2 ---------------- */
|
|
|
|
|
|
- /* transactions */
|
|
|
- 'watch' => '\Predis\Commands\Watch',
|
|
|
- 'unwatch' => '\Predis\Commands\Unwatch',
|
|
|
+ /* commands operating on the key space */
|
|
|
+ 'persist' => '\Predis\Commands\KeyPersist',
|
|
|
|
|
|
/* commands operating on string values */
|
|
|
- 'strlen' => '\Predis\Commands\Strlen',
|
|
|
- 'setrange' => '\Predis\Commands\SetRange',
|
|
|
- 'getrange' => '\Predis\Commands\GetRange',
|
|
|
- 'setbit' => '\Predis\Commands\SetBit',
|
|
|
- 'getbit' => '\Predis\Commands\GetBit',
|
|
|
-
|
|
|
- /* commands operating on the key space */
|
|
|
- 'persist' => '\Predis\Commands\Persist',
|
|
|
+ 'strlen' => '\Predis\Commands\StringStrlen',
|
|
|
+ 'setrange' => '\Predis\Commands\StringSetRange',
|
|
|
+ 'getrange' => '\Predis\Commands\StringGetRange',
|
|
|
+ 'setbit' => '\Predis\Commands\StringSetBit',
|
|
|
+ 'getbit' => '\Predis\Commands\StringGetBit',
|
|
|
|
|
|
/* commands operating on lists */
|
|
|
'rpushx' => '\Predis\Commands\ListPushTailX',
|
|
@@ -178,8 +166,12 @@ class ServerVersion22 extends ServerProfile {
|
|
|
/* commands operating on sorted sets */
|
|
|
'zrevrangebyscore' => '\Predis\Commands\ZSetReverseRangeByScore',
|
|
|
|
|
|
+ /* transactions */
|
|
|
+ 'watch' => '\Predis\Commands\TransactionWatch',
|
|
|
+ 'unwatch' => '\Predis\Commands\TransactionUnwatch',
|
|
|
+
|
|
|
/* remote server control commands */
|
|
|
- 'object' => '\Predis\Commands\DebugObject',
|
|
|
+ 'object' => '\Predis\Commands\ServerObject',
|
|
|
);
|
|
|
}
|
|
|
}
|