PageRenderTime 39ms CodeModel.GetById 8ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/PhpFastCache/_extensions/predis-1.0/src/Profile/RedisVersion280.php

https://gitlab.com/webbroteam/satisfaction-mvc
PHP | 265 lines | 163 code | 43 blank | 59 comment | 0 complexity | 155cd06e7d1ef6e77714c5247e332664 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 2.8.
  13. *
  14. * @author Daniele Alessandri <suppakilla@gmail.com>
  15. */
  16. class RedisVersion280 extends RedisProfile
  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. 'SENTINEL' => 'Predis\Command\ServerSentinel',
  198. /* ---------------- Redis 2.8 ---------------- */
  199. /* commands operating on the key space */
  200. 'SCAN' => 'Predis\Command\KeyScan',
  201. /* commands operating on string values */
  202. 'BITPOS' => 'Predis\Command\StringBitPos',
  203. /* commands operating on sets */
  204. 'SSCAN' => 'Predis\Command\SetScan',
  205. /* commands operating on sorted sets */
  206. 'ZSCAN' => 'Predis\Command\ZSetScan',
  207. 'ZLEXCOUNT' => 'Predis\Command\ZSetLexCount',
  208. 'ZRANGEBYLEX' => 'Predis\Command\ZSetRangeByLex',
  209. 'ZREMRANGEBYLEX' => 'Predis\Command\ZSetRemoveRangeByLex',
  210. /* commands operating on hashes */
  211. 'HSCAN' => 'Predis\Command\HashScan',
  212. /* publish - subscribe */
  213. 'PUBSUB' => 'Predis\Command\PubSubPubsub',
  214. /* commands operating on HyperLogLog */
  215. 'PFADD' => 'Predis\Command\HyperLogLogAdd',
  216. 'PFCOUNT' => 'Predis\Command\HyperLogLogCount',
  217. 'PFMERGE' => 'Predis\Command\HyperLogLogMerge',
  218. /* remote server control commands */
  219. 'COMMAND' => 'Predis\Command\ServerCommand',
  220. );
  221. }
  222. }