StringGetMultiple.php 549 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Predis\Commands;
  3. use Predis\Helpers;
  4. class StringGetMultiple extends Command
  5. {
  6. public function getId()
  7. {
  8. return 'MGET';
  9. }
  10. protected function filterArguments(Array $arguments)
  11. {
  12. return Helpers::filterArrayArguments($arguments);
  13. }
  14. protected function onPrefixKeys(Array $arguments, $prefix)
  15. {
  16. return PrefixHelpers::multipleKeys($arguments, $prefix);
  17. }
  18. protected function canBeHashed()
  19. {
  20. return $this->checkSameHashForKeys($this->getArguments());
  21. }
  22. }