mirror of
https://github.com/predis/predis.git
synced 2026-10-17 01:06:20 +00:00
28 lines
475 B
PHP
28 lines
475 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
class ServerEval extends Command
|
|
{
|
|
public function getId()
|
|
{
|
|
return 'EVAL';
|
|
}
|
|
|
|
protected function onPrefixKeys(Array $arguments, $prefix)
|
|
{
|
|
$arguments = $this->getArguments();
|
|
|
|
for ($i = 2; $i < $arguments[1] + 2; $i++) {
|
|
$arguments[$i] = "$prefix{$arguments[$i]}";
|
|
}
|
|
|
|
return $arguments;
|
|
}
|
|
|
|
protected function canBeHashed()
|
|
{
|
|
return false;
|
|
}
|
|
}
|