ServerEval.php 475 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Predis\Commands;
  3. class ServerEval extends Command
  4. {
  5. public function getId()
  6. {
  7. return 'EVAL';
  8. }
  9. protected function onPrefixKeys(Array $arguments, $prefix)
  10. {
  11. $arguments = $this->getArguments();
  12. for ($i = 2; $i < $arguments[1] + 2; $i++) {
  13. $arguments[$i] = "$prefix{$arguments[$i]}";
  14. }
  15. return $arguments;
  16. }
  17. protected function canBeHashed()
  18. {
  19. return false;
  20. }
  21. }