RedisVersion220Test.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Predis\Profile;
  11. /**
  12. *
  13. */
  14. class RedisVersion220Test extends PredisProfileTestCase
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function getProfile($version = null)
  20. {
  21. return new RedisVersion220();
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function getExpectedVersion()
  27. {
  28. return '2.2';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function getExpectedCommands()
  34. {
  35. return array(
  36. 0 => 'EXISTS',
  37. 1 => 'DEL',
  38. 2 => 'TYPE',
  39. 3 => 'KEYS',
  40. 4 => 'RANDOMKEY',
  41. 5 => 'RENAME',
  42. 6 => 'RENAMENX',
  43. 7 => 'EXPIRE',
  44. 8 => 'EXPIREAT',
  45. 9 => 'TTL',
  46. 10 => 'MOVE',
  47. 11 => 'SORT',
  48. 12 => 'SET',
  49. 13 => 'SETNX',
  50. 14 => 'MSET',
  51. 15 => 'MSETNX',
  52. 16 => 'GET',
  53. 17 => 'MGET',
  54. 18 => 'GETSET',
  55. 19 => 'INCR',
  56. 20 => 'INCRBY',
  57. 21 => 'DECR',
  58. 22 => 'DECRBY',
  59. 23 => 'RPUSH',
  60. 24 => 'LPUSH',
  61. 25 => 'LLEN',
  62. 26 => 'LRANGE',
  63. 27 => 'LTRIM',
  64. 28 => 'LINDEX',
  65. 29 => 'LSET',
  66. 30 => 'LREM',
  67. 31 => 'LPOP',
  68. 32 => 'RPOP',
  69. 33 => 'RPOPLPUSH',
  70. 34 => 'SADD',
  71. 35 => 'SREM',
  72. 36 => 'SPOP',
  73. 37 => 'SMOVE',
  74. 38 => 'SCARD',
  75. 39 => 'SISMEMBER',
  76. 40 => 'SINTER',
  77. 41 => 'SINTERSTORE',
  78. 42 => 'SUNION',
  79. 43 => 'SUNIONSTORE',
  80. 44 => 'SDIFF',
  81. 45 => 'SDIFFSTORE',
  82. 46 => 'SMEMBERS',
  83. 47 => 'SRANDMEMBER',
  84. 48 => 'ZADD',
  85. 49 => 'ZINCRBY',
  86. 50 => 'ZREM',
  87. 51 => 'ZRANGE',
  88. 52 => 'ZREVRANGE',
  89. 53 => 'ZRANGEBYSCORE',
  90. 54 => 'ZCARD',
  91. 55 => 'ZSCORE',
  92. 56 => 'ZREMRANGEBYSCORE',
  93. 57 => 'PING',
  94. 58 => 'AUTH',
  95. 59 => 'SELECT',
  96. 60 => 'ECHO',
  97. 61 => 'QUIT',
  98. 62 => 'INFO',
  99. 63 => 'SLAVEOF',
  100. 64 => 'MONITOR',
  101. 65 => 'DBSIZE',
  102. 66 => 'FLUSHDB',
  103. 67 => 'FLUSHALL',
  104. 68 => 'SAVE',
  105. 69 => 'BGSAVE',
  106. 70 => 'LASTSAVE',
  107. 71 => 'SHUTDOWN',
  108. 72 => 'BGREWRITEAOF',
  109. 73 => 'SETEX',
  110. 74 => 'APPEND',
  111. 75 => 'SUBSTR',
  112. 76 => 'BLPOP',
  113. 77 => 'BRPOP',
  114. 78 => 'ZUNIONSTORE',
  115. 79 => 'ZINTERSTORE',
  116. 80 => 'ZCOUNT',
  117. 81 => 'ZRANK',
  118. 82 => 'ZREVRANK',
  119. 83 => 'ZREMRANGEBYRANK',
  120. 84 => 'HSET',
  121. 85 => 'HSETNX',
  122. 86 => 'HMSET',
  123. 87 => 'HINCRBY',
  124. 88 => 'HGET',
  125. 89 => 'HMGET',
  126. 90 => 'HDEL',
  127. 91 => 'HEXISTS',
  128. 92 => 'HLEN',
  129. 93 => 'HKEYS',
  130. 94 => 'HVALS',
  131. 95 => 'HGETALL',
  132. 96 => 'MULTI',
  133. 97 => 'EXEC',
  134. 98 => 'DISCARD',
  135. 99 => 'SUBSCRIBE',
  136. 100 => 'UNSUBSCRIBE',
  137. 101 => 'PSUBSCRIBE',
  138. 102 => 'PUNSUBSCRIBE',
  139. 103 => 'PUBLISH',
  140. 104 => 'CONFIG',
  141. 105 => 'PERSIST',
  142. 106 => 'STRLEN',
  143. 107 => 'SETRANGE',
  144. 108 => 'GETRANGE',
  145. 109 => 'SETBIT',
  146. 110 => 'GETBIT',
  147. 111 => 'RPUSHX',
  148. 112 => 'LPUSHX',
  149. 113 => 'LINSERT',
  150. 114 => 'BRPOPLPUSH',
  151. 115 => 'ZREVRANGEBYSCORE',
  152. 116 => 'WATCH',
  153. 117 => 'UNWATCH',
  154. 118 => 'OBJECT',
  155. 119 => 'SLOWLOG',
  156. );
  157. }
  158. }