mirror of
https://github.com/predis/predis.git
synced 2026-09-15 04:47:01 +00:00
New command: SCRIPT (Redis v2.6-dev).
See http://redis.io/commands/script.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@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',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user