PageRenderTime 37ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/predis/predis/lib/Predis/Profile/ServerVersion28.php

https://gitlab.com/daniruizcamacho/pfcascensores
PHP | 247 lines | 153 code | 39 blank | 55 comment | 0 complexity | cb4b9046b996a5857359a2f542d4f286 MD5 | raw file
  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. * Server profile for Redis v2.8.x.
  13. *
  14. * @author Daniele Alessandri <suppakilla@gmail.com>
  15. */
  16. class ServerVersion28 extends ServerProfile
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function getVersion()
  22. {
  23. return '2.8';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function getSupportedCommands()
  29. {
  30. return array(
  31. /* ---------------- Redis 1.2 ---------------- */
  32. /* commands operating on the key space */
  33. 'exists' => 'Predis\Command\KeyExists',
  34. 'del' => 'Predis\Command\KeyDelete',
  35. 'type' => 'Predis\Command\KeyType',
  36. 'keys' => 'Predis\Command\KeyKeys',
  37. 'randomkey' => 'Predis\Command\KeyRandom',
  38. 'rename' => 'Predis\Command\KeyRename',
  39. 'renamenx' => 'Predis\Command\KeyRenamePreserve',
  40. 'expire' => 'Predis\Command\KeyExpire',
  41. 'expireat' => 'Predis\Command\KeyExpireAt',
  42. 'ttl' => 'Predis\Command\KeyTimeToLive',
  43. 'move' => 'Predis\Command\KeyMove',
  44. 'sort' => 'Predis\Command\KeySort',
  45. 'dump' => 'Predis\Command\KeyDump',
  46. 'restore' => 'Predis\Command\KeyRestore',
  47. /* commands operating on string values */
  48. 'set' => 'Predis\Command\StringSet',
  49. 'setnx' => 'Predis\Command\StringSetPreserve',
  50. 'mset' => 'Predis\Command\StringSetMultiple',
  51. 'msetnx' => 'Predis\Command\StringSetMultiplePreserve',
  52. 'get' => 'Predis\Command\StringGet',
  53. 'mget' => 'Predis\Command\StringGetMultiple',
  54. 'getset' => 'Predis\Command\StringGetSet',
  55. 'incr' => 'Predis\Command\StringIncrement',
  56. 'incrby' => 'Predis\Command\StringIncrementBy',
  57. 'decr' => 'Predis\Command\StringDecrement',
  58. 'decrby' => 'Predis\Command\StringDecrementBy',
  59. /* commands operating on lists */
  60. 'rpush' => 'Predis\Command\ListPushTail',
  61. 'lpush' => 'Predis\Command\ListPushHead',
  62. 'llen' => 'Predis\Command\ListLength',
  63. 'lrange' => 'Predis\Command\ListRange',
  64. 'ltrim' => 'Predis\Command\ListTrim',
  65. 'lindex' => 'Predis\Command\ListIndex',
  66. 'lset' => 'Predis\Command\ListSet',
  67. 'lrem' => 'Predis\Command\ListRemove',
  68. 'lpop' => 'Predis\Command\ListPopFirst',
  69. 'rpop' => 'Predis\Command\ListPopLast',
  70. 'rpoplpush' => 'Predis\Command\ListPopLastPushHead',
  71. /* commands operating on sets */
  72. 'sadd' => 'Predis\Command\SetAdd',
  73. 'srem' => 'Predis\Command\SetRemove',
  74. 'spop' => 'Predis\Command\SetPop',
  75. 'smove' => 'Predis\Command\SetMove',
  76. 'scard' => 'Predis\Command\SetCardinality',
  77. 'sismember' => 'Predis\Command\SetIsMember',
  78. 'sinter' => 'Predis\Command\SetIntersection',
  79. 'sinterstore' => 'Predis\Command\SetIntersectionStore',
  80. 'sunion' => 'Predis\Command\SetUnion',
  81. 'sunionstore' => 'Predis\Command\SetUnionStore',
  82. 'sdiff' => 'Predis\Command\SetDifference',
  83. 'sdiffstore' => 'Predis\Command\SetDifferenceStore',
  84. 'smembers' => 'Predis\Command\SetMembers',
  85. 'srandmember' => 'Predis\Command\SetRandomMember',
  86. /* commands operating on sorted sets */
  87. 'zadd' => 'Predis\Command\ZSetAdd',
  88. 'zincrby' => 'Predis\Command\ZSetIncrementBy',
  89. 'zrem' => 'Predis\Command\ZSetRemove',
  90. 'zrange' => 'Predis\Command\ZSetRange',
  91. 'zrevrange' => 'Predis\Command\ZSetReverseRange',
  92. 'zrangebyscore' => 'Predis\Command\ZSetRangeByScore',
  93. 'zcard' => 'Predis\Command\ZSetCardinality',
  94. 'zscore' => 'Predis\Command\ZSetScore',
  95. 'zremrangebyscore' => 'Predis\Command\ZSetRemoveRangeByScore',
  96. /* connection related commands */
  97. 'ping' => 'Predis\Command\ConnectionPing',
  98. 'auth' => 'Predis\Command\ConnectionAuth',
  99. 'select' => 'Predis\Command\ConnectionSelect',
  100. 'echo' => 'Predis\Command\ConnectionEcho',
  101. 'quit' => 'Predis\Command\ConnectionQuit',
  102. /* remote server control commands */
  103. 'info' => 'Predis\Command\ServerInfoV26x',
  104. 'slaveof' => 'Predis\Command\ServerSlaveOf',
  105. 'monitor' => 'Predis\Command\ServerMonitor',
  106. 'dbsize' => 'Predis\Command\ServerDatabaseSize',
  107. 'flushdb' => 'Predis\Command\ServerFlushDatabase',
  108. 'flushall' => 'Predis\Command\ServerFlushAll',
  109. 'save' => 'Predis\Command\ServerSave',
  110. 'bgsave' => 'Predis\Command\ServerBackgroundSave',
  111. 'lastsave' => 'Predis\Command\ServerLastSave',
  112. 'shutdown' => 'Predis\Command\ServerShutdown',
  113. 'bgrewriteaof' => 'Predis\Command\ServerBackgroundRewriteAOF',
  114. /* ---------------- Redis 2.0 ---------------- */
  115. /* commands operating on string values */
  116. 'setex' => 'Predis\Command\StringSetExpire',
  117. 'append' => 'Predis\Command\StringAppend',
  118. 'substr' => 'Predis\Command\StringSubstr',
  119. /* commands operating on lists */
  120. 'blpop' => 'Predis\Command\ListPopFirstBlocking',
  121. 'brpop' => 'Predis\Command\ListPopLastBlocking',
  122. /* commands operating on sorted sets */
  123. 'zunionstore' => 'Predis\Command\ZSetUnionStore',
  124. 'zinterstore' => 'Predis\Command\ZSetIntersectionStore',
  125. 'zcount' => 'Predis\Command\ZSetCount',
  126. 'zrank' => 'Predis\Command\ZSetRank',
  127. 'zrevrank' => 'Predis\Command\ZSetReverseRank',
  128. 'zremrangebyrank' => 'Predis\Command\ZSetRemoveRangeByRank',
  129. /* commands operating on hashes */
  130. 'hset' => 'Predis\Command\HashSet',
  131. 'hsetnx' => 'Predis\Command\HashSetPreserve',
  132. 'hmset' => 'Predis\Command\HashSetMultiple',
  133. 'hincrby' => 'Predis\Command\HashIncrementBy',
  134. 'hget' => 'Predis\Command\HashGet',
  135. 'hmget' => 'Predis\Command\HashGetMultiple',
  136. 'hdel' => 'Predis\Command\HashDelete',
  137. 'hexists' => 'Predis\Command\HashExists',
  138. 'hlen' => 'Predis\Command\HashLength',
  139. 'hkeys' => 'Predis\Command\HashKeys',
  140. 'hvals' => 'Predis\Command\HashValues',
  141. 'hgetall' => 'Predis\Command\HashGetAll',
  142. /* transactions */
  143. 'multi' => 'Predis\Command\TransactionMulti',
  144. 'exec' => 'Predis\Command\TransactionExec',
  145. 'discard' => 'Predis\Command\TransactionDiscard',
  146. /* publish - subscribe */
  147. 'subscribe' => 'Predis\Command\PubSubSubscribe',
  148. 'unsubscribe' => 'Predis\Command\PubSubUnsubscribe',
  149. 'psubscribe' => 'Predis\Command\PubSubSubscribeByPattern',
  150. 'punsubscribe' => 'Predis\Command\PubSubUnsubscribeByPattern',
  151. 'publish' => 'Predis\Command\PubSubPublish',
  152. /* remote server control commands */
  153. 'config' => 'Predis\Command\ServerConfig',
  154. /* ---------------- Redis 2.2 ---------------- */
  155. /* commands operating on the key space */
  156. 'persist' => 'Predis\Command\KeyPersist',
  157. /* commands operating on string values */
  158. 'strlen' => 'Predis\Command\StringStrlen',
  159. 'setrange' => 'Predis\Command\StringSetRange',
  160. 'getrange' => 'Predis\Command\StringGetRange',
  161. 'setbit' => 'Predis\Command\StringSetBit',
  162. 'getbit' => 'Predis\Command\StringGetBit',
  163. /* commands operating on lists */
  164. 'rpushx' => 'Predis\Command\ListPushTailX',
  165. 'lpushx' => 'Predis\Command\ListPushHeadX',
  166. 'linsert' => 'Predis\Command\ListInsert',
  167. 'brpoplpush' => 'Predis\Command\ListPopLastPushHeadBlocking',
  168. /* commands operating on sorted sets */
  169. 'zrevrangebyscore' => 'Predis\Command\ZSetReverseRangeByScore',
  170. /* transactions */
  171. 'watch' => 'Predis\Command\TransactionWatch',
  172. 'unwatch' => 'Predis\Command\TransactionUnwatch',
  173. /* remote server control commands */
  174. 'object' => 'Predis\Command\ServerObject',
  175. 'slowlog' => 'Predis\Command\ServerSlowlog',
  176. /* ---------------- Redis 2.4 ---------------- */
  177. /* remote server control commands */
  178. 'client' => 'Predis\Command\ServerClient',
  179. /* ---------------- Redis 2.6 ---------------- */
  180. /* commands operating on the key space */
  181. 'pttl' => 'Predis\Command\KeyPreciseTimeToLive',
  182. 'pexpire' => 'Predis\Command\KeyPreciseExpire',
  183. 'pexpireat' => 'Predis\Command\KeyPreciseExpireAt',
  184. /* commands operating on string values */
  185. 'psetex' => 'Predis\Command\StringPreciseSetExpire',
  186. 'incrbyfloat' => 'Predis\Command\StringIncrementByFloat',
  187. 'bitop' => 'Predis\Command\StringBitOp',
  188. 'bitcount' => 'Predis\Command\StringBitCount',
  189. /* commands operating on hashes */
  190. 'hincrbyfloat' => 'Predis\Command\HashIncrementByFloat',
  191. /* scripting */
  192. 'eval' => 'Predis\Command\ServerEval',
  193. 'evalsha' => 'Predis\Command\ServerEvalSHA',
  194. 'script' => 'Predis\Command\ServerScript',
  195. /* remote server control commands */
  196. 'time' => 'Predis\Command\ServerTime',
  197. /* ---------------- Redis 2.8 ---------------- */
  198. /* commands operating on the key space */
  199. 'scan' => 'Predis\Command\KeyScan',
  200. /* commands operating on sets */
  201. 'sscan' => 'Predis\Command\SetScan',
  202. /* commands operating on sorted sets */
  203. 'zscan' => 'Predis\Command\ZSetScan',
  204. /* commands operating on hashes */
  205. 'hscan' => 'Predis\Command\HashScan',
  206. );
  207. }
  208. }