RedisUnstable.php 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 the current unstable version of Redis.
  13. *
  14. * @author Daniele Alessandri <suppakilla@gmail.com>
  15. */
  16. class RedisUnstable extends RedisVersion300
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function getVersion()
  22. {
  23. return '3.2';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function getSupportedCommands()
  29. {
  30. return array_merge(parent::getSupportedCommands(), array(
  31. /* ---------------- Redis 3.2 ---------------- */
  32. /* commands operating on hashes */
  33. 'HSTRLEN' => 'Predis\Command\HashStringLength',
  34. ));
  35. }
  36. }