ServerVersionNext.php 972 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Predis\Profiles;
  3. class ServerVersionNext extends ServerVersion22 {
  4. public function getVersion() { return '2.4'; }
  5. public function getSupportedCommands() {
  6. return array_merge(parent::getSupportedCommands(), array(
  7. /* commands operating on lists */
  8. 'rpush' => '\Predis\Commands\ListPushTailV24x',
  9. 'lpush' => '\Predis\Commands\ListPushHeadV24x',
  10. /* commands operating on sets */
  11. 'sadd' => '\Predis\Commands\SetAddV24x',
  12. 'srem' => '\Predis\Commands\SetRemoveV24x',
  13. /* commands operating on hashes */
  14. 'hdel' => '\Predis\Commands\HashDeleteV24x',
  15. /* remote server control commands */
  16. 'info' => '\Predis\Commands\InfoV24x',
  17. 'client' => '\Predis\Commands\Client',
  18. ));
  19. }
  20. }