mirror of
https://github.com/predis/predis.git
synced 2026-08-24 23:29:43 +00:00
dc14c29676
Now we follow a Symfony2-like naming convention for namespaces, interfaces and classes sticking with one clear rule. - Renamed namespaces: - Predis\Network - Predis\Profiles - Predis\Iterators - Predis\Options - Predis\Commands - Predis\Commands\Processors - Renamed interfaces: - Predis\IReplyObject - Predis\IRedisServerError - Predis\IConnectionFactory - Predis\IConnectionParameters - Predis\Options\IOption - Predis\Options\IClientOptions - Predis\Profile\IServerProfile - Predis\Pipeline\IPipelineExecutor - Predis\Distribution\INodeKeyGenerator - Predis\Distribution\IDistributionStrategy - Predis\Protocol\IProtocolProcessor - Predis\Protocol\IResponseReader - Predis\Protocol\IResponseHandler - Predis\Protocol\ICommandSerializer - Predis\Protocol\IComposableProtocolProcessor - Predis\Network\IConnection - Predis\Network\IConnectionSingle - Predis\Network\IConnectionComposable - Predis\Network\IConnectionCluster - Predis\Network\IConnectionReplication - Predis\Commands\ICommand - Predis\Commands\IPrefixable - Predis\Command\Processor\ICommandProcessor - Predis\Command\Processor\ICommandProcessorChain - Predis\Command\Processor\IProcessingSupport - Renamed Classes: - Predis\Commands\Command - Predis\Network\ConnectionBase - Classes moved to different namespaces: - Predis\MonitorContext Meh
117 lines
2.7 KiB
PHP
117 lines
2.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Predis package.
|
|
*
|
|
* (c) Daniele Alessandri <suppakilla@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Predis\Profile;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class ServerVersion12Test extends ServerVersionTestCase
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getProfileInstance()
|
|
{
|
|
return new ServerVersion12();
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getExpectedVersion()
|
|
{
|
|
return '1.2';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getExpectedCommands()
|
|
{
|
|
return array(
|
|
0 => 'exists',
|
|
1 => 'del',
|
|
2 => 'type',
|
|
3 => 'keys',
|
|
4 => 'randomkey',
|
|
5 => 'rename',
|
|
6 => 'renamenx',
|
|
7 => 'expire',
|
|
8 => 'expireat',
|
|
9 => 'ttl',
|
|
10 => 'move',
|
|
11 => 'sort',
|
|
12 => 'set',
|
|
13 => 'setnx',
|
|
14 => 'mset',
|
|
15 => 'msetnx',
|
|
16 => 'get',
|
|
17 => 'mget',
|
|
18 => 'getset',
|
|
19 => 'incr',
|
|
20 => 'incrby',
|
|
21 => 'decr',
|
|
22 => 'decrby',
|
|
23 => 'rpush',
|
|
24 => 'lpush',
|
|
25 => 'llen',
|
|
26 => 'lrange',
|
|
27 => 'ltrim',
|
|
28 => 'lindex',
|
|
29 => 'lset',
|
|
30 => 'lrem',
|
|
31 => 'lpop',
|
|
32 => 'rpop',
|
|
33 => 'rpoplpush',
|
|
34 => 'sadd',
|
|
35 => 'srem',
|
|
36 => 'spop',
|
|
37 => 'smove',
|
|
38 => 'scard',
|
|
39 => 'sismember',
|
|
40 => 'sinter',
|
|
41 => 'sinterstore',
|
|
42 => 'sunion',
|
|
43 => 'sunionstore',
|
|
44 => 'sdiff',
|
|
45 => 'sdiffstore',
|
|
46 => 'smembers',
|
|
47 => 'srandmember',
|
|
48 => 'zadd',
|
|
49 => 'zincrby',
|
|
50 => 'zrem',
|
|
51 => 'zrange',
|
|
52 => 'zrevrange',
|
|
53 => 'zrangebyscore',
|
|
54 => 'zcard',
|
|
55 => 'zscore',
|
|
56 => 'zremrangebyscore',
|
|
57 => 'ping',
|
|
58 => 'auth',
|
|
59 => 'select',
|
|
60 => 'echo',
|
|
61 => 'quit',
|
|
62 => 'info',
|
|
63 => 'slaveof',
|
|
64 => 'monitor',
|
|
65 => 'dbsize',
|
|
66 => 'flushdb',
|
|
67 => 'flushall',
|
|
68 => 'save',
|
|
69 => 'bgsave',
|
|
70 => 'lastsave',
|
|
71 => 'shutdown',
|
|
72 => 'bgrewriteaof',
|
|
);
|
|
}
|
|
}
|