|
@@ -1627,98 +1627,98 @@ class RedisServer_v1_2 extends RedisServerProfile {
|
|
|
public function getSupportedCommands() {
|
|
|
return array(
|
|
|
/* miscellaneous commands */
|
|
|
- 'ping' => '\Predis\Commands\Ping',
|
|
|
- 'echo' => '\Predis\Commands\DoEcho',
|
|
|
- 'auth' => '\Predis\Commands\Auth',
|
|
|
+ 'ping' => '\Predis\Commands\Ping',
|
|
|
+ 'echo' => '\Predis\Commands\DoEcho',
|
|
|
+ 'auth' => '\Predis\Commands\Auth',
|
|
|
|
|
|
/* connection handling */
|
|
|
- 'quit' => '\Predis\Commands\Quit',
|
|
|
+ 'quit' => '\Predis\Commands\Quit',
|
|
|
|
|
|
/* 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',
|
|
|
+ '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',
|
|
|
+ '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',
|
|
|
|
|
|
/* commands operating on lists */
|
|
|
- 'rpush' => '\Predis\Commands\ListPushTail',
|
|
|
- 'lpush' => '\Predis\Commands\ListPushHead',
|
|
|
- 'llen' => '\Predis\Commands\ListLength',
|
|
|
- 'lrange' => '\Predis\Commands\ListRange',
|
|
|
- 'ltrim' => '\Predis\Commands\ListTrim',
|
|
|
- 'lindex' => '\Predis\Commands\ListIndex',
|
|
|
- 'lset' => '\Predis\Commands\ListSet',
|
|
|
- 'lrem' => '\Predis\Commands\ListRemove',
|
|
|
- 'lpop' => '\Predis\Commands\ListPopFirst',
|
|
|
- 'rpop' => '\Predis\Commands\ListPopLast',
|
|
|
- 'rpoplpush' => '\Predis\Commands\ListPopLastPushHead',
|
|
|
+ 'rpush' => '\Predis\Commands\ListPushTail',
|
|
|
+ 'lpush' => '\Predis\Commands\ListPushHead',
|
|
|
+ 'llen' => '\Predis\Commands\ListLength',
|
|
|
+ 'lrange' => '\Predis\Commands\ListRange',
|
|
|
+ 'ltrim' => '\Predis\Commands\ListTrim',
|
|
|
+ 'lindex' => '\Predis\Commands\ListIndex',
|
|
|
+ 'lset' => '\Predis\Commands\ListSet',
|
|
|
+ 'lrem' => '\Predis\Commands\ListRemove',
|
|
|
+ 'lpop' => '\Predis\Commands\ListPopFirst',
|
|
|
+ 'rpop' => '\Predis\Commands\ListPopLast',
|
|
|
+ 'rpoplpush' => '\Predis\Commands\ListPopLastPushHead',
|
|
|
|
|
|
/* commands operating on sets */
|
|
|
- 'sadd' => '\Predis\Commands\SetAdd',
|
|
|
- 'srem' => '\Predis\Commands\SetRemove',
|
|
|
+ 'sadd' => '\Predis\Commands\SetAdd',
|
|
|
+ 'srem' => '\Predis\Commands\SetRemove',
|
|
|
'spop' => '\Predis\Commands\SetPop',
|
|
|
- 'smove' => '\Predis\Commands\SetMove',
|
|
|
- 'scard' => '\Predis\Commands\SetCardinality',
|
|
|
- 'sismember' => '\Predis\Commands\SetIsMember',
|
|
|
- 'sinter' => '\Predis\Commands\SetIntersection',
|
|
|
- 'sinterstore' => '\Predis\Commands\SetIntersectionStore',
|
|
|
- 'sunion' => '\Predis\Commands\SetUnion',
|
|
|
- 'sunionstore' => '\Predis\Commands\SetUnionStore',
|
|
|
- 'sdiff' => '\Predis\Commands\SetDifference',
|
|
|
- 'sdiffstore' => '\Predis\Commands\SetDifferenceStore',
|
|
|
- 'smembers' => '\Predis\Commands\SetMembers',
|
|
|
- 'srandmember' => '\Predis\Commands\SetRandomMember',
|
|
|
+ 'smove' => '\Predis\Commands\SetMove',
|
|
|
+ 'scard' => '\Predis\Commands\SetCardinality',
|
|
|
+ 'sismember' => '\Predis\Commands\SetIsMember',
|
|
|
+ 'sinter' => '\Predis\Commands\SetIntersection',
|
|
|
+ 'sinterstore' => '\Predis\Commands\SetIntersectionStore',
|
|
|
+ 'sunion' => '\Predis\Commands\SetUnion',
|
|
|
+ 'sunionstore' => '\Predis\Commands\SetUnionStore',
|
|
|
+ 'sdiff' => '\Predis\Commands\SetDifference',
|
|
|
+ 'sdiffstore' => '\Predis\Commands\SetDifferenceStore',
|
|
|
+ 'smembers' => '\Predis\Commands\SetMembers',
|
|
|
+ 'srandmember' => '\Predis\Commands\SetRandomMember',
|
|
|
|
|
|
/* commands operating on sorted sets */
|
|
|
- 'zadd' => '\Predis\Commands\ZSetAdd',
|
|
|
- 'zincrby' => '\Predis\Commands\ZSetIncrementBy',
|
|
|
- 'zrem' => '\Predis\Commands\ZSetRemove',
|
|
|
- 'zrange' => '\Predis\Commands\ZSetRange',
|
|
|
- 'zrevrange' => '\Predis\Commands\ZSetReverseRange',
|
|
|
- 'zrangebyscore' => '\Predis\Commands\ZSetRangeByScore',
|
|
|
- 'zcard' => '\Predis\Commands\ZSetCardinality',
|
|
|
- 'zscore' => '\Predis\Commands\ZSetScore',
|
|
|
- 'zremrangebyscore' => '\Predis\Commands\ZSetRemoveRangeByScore',
|
|
|
+ 'zadd' => '\Predis\Commands\ZSetAdd',
|
|
|
+ 'zincrby' => '\Predis\Commands\ZSetIncrementBy',
|
|
|
+ 'zrem' => '\Predis\Commands\ZSetRemove',
|
|
|
+ 'zrange' => '\Predis\Commands\ZSetRange',
|
|
|
+ 'zrevrange' => '\Predis\Commands\ZSetReverseRange',
|
|
|
+ 'zrangebyscore' => '\Predis\Commands\ZSetRangeByScore',
|
|
|
+ 'zcard' => '\Predis\Commands\ZSetCardinality',
|
|
|
+ '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',
|
|
|
+ 'select' => '\Predis\Commands\SelectDatabase',
|
|
|
+ 'move' => '\Predis\Commands\MoveKey',
|
|
|
+ 'flushdb' => '\Predis\Commands\FlushDatabase',
|
|
|
+ 'flushall' => '\Predis\Commands\FlushAll',
|
|
|
|
|
|
/* sorting */
|
|
|
- 'sort' => '\Predis\Commands\Sort',
|
|
|
+ 'sort' => '\Predis\Commands\Sort',
|
|
|
|
|
|
/* remote server control commands */
|
|
|
- 'info' => '\Predis\Commands\Info',
|
|
|
- 'slaveof' => '\Predis\Commands\SlaveOf',
|
|
|
+ 'info' => '\Predis\Commands\Info',
|
|
|
+ 'slaveof' => '\Predis\Commands\SlaveOf',
|
|
|
|
|
|
/* persistence control commands */
|
|
|
- 'save' => '\Predis\Commands\Save',
|
|
|
- 'bgsave' => '\Predis\Commands\BackgroundSave',
|
|
|
- 'lastsave' => '\Predis\Commands\LastSave',
|
|
|
- 'shutdown' => '\Predis\Commands\Shutdown',
|
|
|
- 'bgrewriteaof' => '\Predis\Commands\BackgroundRewriteAppendOnlyFile',
|
|
|
+ 'save' => '\Predis\Commands\Save',
|
|
|
+ 'bgsave' => '\Predis\Commands\BackgroundSave',
|
|
|
+ 'lastsave' => '\Predis\Commands\LastSave',
|
|
|
+ 'shutdown' => '\Predis\Commands\Shutdown',
|
|
|
+ 'bgrewriteaof' => '\Predis\Commands\BackgroundRewriteAppendOnlyFile',
|
|
|
);
|
|
|
}
|
|
|
}
|