ServerVersion22.php 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Predis\Profiles;
  3. class ServerVersion22 extends ServerVersion20 {
  4. public function getVersion() { return '2.2'; }
  5. public function getSupportedCommands() {
  6. return array_merge(parent::getSupportedCommands(), array(
  7. /* transactions */
  8. 'watch' => '\Predis\Commands\Watch',
  9. 'unwatch' => '\Predis\Commands\Unwatch',
  10. /* commands operating on string values */
  11. 'strlen' => '\Predis\Commands\Strlen',
  12. 'setrange' => '\Predis\Commands\SetRange',
  13. 'getrange' => '\Predis\Commands\GetRange',
  14. 'setbit' => '\Predis\Commands\SetBit',
  15. 'getbit' => '\Predis\Commands\GetBit',
  16. /* commands operating on the key space */
  17. 'persist' => '\Predis\Commands\Persist',
  18. /* commands operating on lists */
  19. 'rpushx' => '\Predis\Commands\ListPushTailX',
  20. 'lpushx' => '\Predis\Commands\ListPushHeadX',
  21. 'linsert' => '\Predis\Commands\ListInsert',
  22. 'brpoplpush' => '\Predis\Commands\ListPopLastPushHeadBlocking',
  23. /* commands operating on sorted sets */
  24. 'zrevrangebyscore' => '\Predis\Commands\ZSetReverseRangeByScore',
  25. ));
  26. }
  27. }