New command: SCRIPT (Redis v2.6-dev).

See http://redis.io/commands/script.
This commit is contained in:
Daniele Alessandri
2011-11-18 13:55:03 +01:00
parent f75974b5d8
commit 4e0709ad3d
3 changed files with 45 additions and 1 deletions
+1 -1
View File
@@ -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
+43
View File
@@ -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';
}
/**
* {@inheritdoc}
*/
protected function onPrefixKeys(Array $arguments, $prefix)
{
/* NOOP */
}
/**
* {@inheritdoc}
*/
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',
));
}
}