ServerEval.php 461 B

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