See http://redis.io/commands/script.
@@ -13,4 +13,4 @@
* Missing tests for commands:
PUBLISH, SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, DEBUG, OBJECT,
- CLIENT, CONFIG GET, CONFIG SET, CONFIG RESETSTAT, SLOWLOG
+ CLIENT, CONFIG GET, CONFIG SET, CONFIG RESETSTAT, SLOWLOG, SCRIPT
@@ -0,0 +1,43 @@
+<?php
+
+/*
+ * This file is part of the Predis package.
+ *
+ * (c) Daniele Alessandri <suppakilla@gmail.com>
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace Predis\Commands;
+/**
+ * @link http://redis.io/commands/script
+ * @author Daniele Alessandri <suppakilla@gmail.com>
+class ServerScript extends Command
+{
+ /**
+ * {@inheritdoc}
+ public function getId()
+ {
+ return 'SCRIPT';
+ }
+ protected function onPrefixKeys(Array $arguments, $prefix)
+ /* NOOP */
+ protected function canBeHashed()
+ return false;
+}
@@ -35,6 +35,7 @@ class ServerVersionNext extends ServerVersion24
'info' => '\Predis\Commands\ServerInfoV26x',
'eval' => '\Predis\Commands\ServerEval',
'evalsha' => '\Predis\Commands\ServerEvalSHA',
+ 'script' => '\Predis\Commands\ServerScript',
));
}