瀏覽代碼

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

Daniele Alessandri 14 年之前
父節點
當前提交
bd027341be
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 13 0
      lib/Predis/Commands/ServerEval.php
  2. 1 0
      lib/Predis/Profiles/ServerVersionNext.php

+ 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',
         ));
     }
 }