mirror of
https://github.com/predis/predis.git
synced 2026-09-14 20:37:29 +00:00
New command: EVALSHA (Redis v2.4-dev).
This commit is contained in:
@@ -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',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user