Skip to content

Commit b46ec3b

Browse files
committed
Merge pull request ukko#9 from rybakit/patch-1
Add evaluate and evaluateSha aliases
2 parents 55fe564 + 605ea31 commit b46ec3b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Redis.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,6 +2751,14 @@ public function hMGet( $key, $hashKeys ) {}
27512751
*/
27522752
public function config( $operation, $key, $value ) {}
27532753

2754+
/**
2755+
* @see eval()
2756+
* @param string $script
2757+
* @param array $args
2758+
* @param int $numKeys
2759+
*/
2760+
public function evaluate( $script, $args = array(), $numKeys = 0 ) {}
2761+
27542762
/**
27552763
* Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself.
27562764
* In order to run this command Redis will have to have already loaded the script, either by running it or via
@@ -2770,6 +2778,14 @@ public function config( $operation, $key, $value ) {}
27702778
*/
27712779
public function evalSha( $scriptSha, $args = array(), $numKeys = 0 ) {}
27722780

2781+
/**
2782+
* @see evalSha()
2783+
* @param string $scriptSha
2784+
* @param array $args
2785+
* @param int $numKeys
2786+
*/
2787+
public function evaluateSha( $scriptSha, $args = array(), $numKeys = 0 ) {}
2788+
27732789
/**
27742790
* Execute the Redis SCRIPT command to perform various operations on the scripting subsystem.
27752791
* @param string $command load | flush | kill | exists

0 commit comments

Comments
 (0)