Przeglądaj źródła

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

Daniele Alessandri 14 lat temu
rodzic
commit
bd027341be

+ 13 - 0
lib/Predis/Commands/ServerEval.php

@@ -0,0 +1,13 @@
+<?php
+
+namespace Predis\Commands;
+
+class ServerEval extends Command {
+    public function getId() {
+        return 'EVAL';
+    }
+
+    protected function canBeHashed() {
+        return false;
+    }
+}

+ 1 - 0
lib/Predis/Profiles/ServerVersionNext.php

@@ -20,6 +20,7 @@ class ServerVersionNext extends ServerVersion22 {
             /* remote server control commands */
             'info'                      => '\Predis\Commands\ServerInfoV24x',
             'client'                    => '\Predis\Commands\ServerClient',
+            'eval'                      => '\Predis\Commands\ServerEval',
         ));
     }
 }