Skip to content

Add evaluate and evaluateSha aliases #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -2751,6 +2751,14 @@ public function hMGet( $key, $hashKeys ) {}
*/
public function config( $operation, $key, $value ) {}

/**
* @see eval()
* @param string $script
* @param array $args
* @param int $numKeys
*/
public function evaluate( $script, $args = array(), $numKeys = 0 ) {}

/**
* Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself.
* In order to run this command Redis will have to have already loaded the script, either by running it or via
Expand All @@ -2770,6 +2778,14 @@ public function config( $operation, $key, $value ) {}
*/
public function evalSha( $scriptSha, $args = array(), $numKeys = 0 ) {}

/**
* @see evalSha()
* @param string $scriptSha
* @param array $args
* @param int $numKeys
*/
public function evaluateSha( $scriptSha, $args = array(), $numKeys = 0 ) {}

/**
* Execute the Redis SCRIPT command to perform various operations on the scripting subsystem.
* @param string $command load | flush | kill | exists
Expand Down