New command: EVALSHA (Redis v2.4-dev).

This commit is contained in:
Daniele Alessandri
2011-05-13 21:23:02 +02:00
parent 909b06e805
commit 2010774b68
2 changed files with 18 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace Predis\Commands;
class ServerEvalSHA extends Command {
public function getId() {
return 'EVALSHA';
}
protected function onPrefixKeys(Array $arguments, $prefix) {
/* NOOP */
}
protected function canBeHashed() {
return false;
}
}
@@ -21,6 +21,7 @@ class ServerVersionNext extends ServerVersion22 {
'info' => '\Predis\Commands\ServerInfoV24x',
'client' => '\Predis\Commands\ServerClient',
'eval' => '\Predis\Commands\ServerEval',
'evalsha' => '\Predis\Commands\ServerEvalSHA',
));
}
}