ServerVersionNext.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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\Profiles;
  11. /**
  12. * Server profile for the current development version of Redis.
  13. *
  14. * @author Daniele Alessandri <suppakilla@gmail.com>
  15. */
  16. class ServerVersionNext extends ServerVersion24
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function getVersion()
  22. {
  23. return '2.6';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function getSupportedCommands()
  29. {
  30. return array_merge(parent::getSupportedCommands(), array(
  31. /* commands operating on the key space */
  32. 'pttl' => 'Predis\Commands\KeyPreciseTimeToLive',
  33. 'pexpire' => 'Predis\Commands\KeyPreciseExpire',
  34. 'pexpireat' => 'Predis\Commands\KeyPreciseExpireAt',
  35. /* commands operating on string values */
  36. 'psetex' => 'Predis\Commands\StringPreciseSetExpire',
  37. 'incrbyfloat' => 'Predis\Commands\StringIncrementByFloat',
  38. /* commands operating on hashes */
  39. 'hincrbyfloat' => 'Predis\Commands\HashIncrementByFloat',
  40. /* scripting */
  41. 'eval' => 'Predis\Commands\ServerEval',
  42. 'evalsha' => 'Predis\Commands\ServerEvalSHA',
  43. 'script' => 'Predis\Commands\ServerScript',
  44. /* remote server control commands */
  45. 'info' => 'Predis\Commands\ServerInfoV26x',
  46. ));
  47. }
  48. }