ServerVersionNext.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. /* scripting */
  38. 'eval' => '\Predis\Commands\ServerEval',
  39. 'evalsha' => '\Predis\Commands\ServerEvalSHA',
  40. 'script' => '\Predis\Commands\ServerScript',
  41. /* remote server control commands */
  42. 'info' => '\Predis\Commands\ServerInfoV26x',
  43. ));
  44. }
  45. }