Skip to content

Commit eedba71

Browse files
authored
Merge pull request #48 from cheprasov/upd-script-exists
Changed description for command SCRIPT EXISTS
2 parents 5dd0ea0 + 9044f3e commit eedba71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RedisClient/Command/Traits/Version2x6/ScriptingCommandsTrait.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ public function evalsha($sha, $keys = null, $args = null) {
7171
}
7272

7373
/**
74-
* SCRIPT EXISTS script [script ...]
74+
* SCRIPT EXISTS sha1 [sha1 ...]
7575
* Available since 2.6.0.
7676
* Time complexity: O(N) with N being the number of scripts to check
7777
* (so checking a single script is an O(1) operation).
7878
* @link http://redis.io/commands/script-exists
7979
*
80-
* @param string|string[] $scriptsSha
80+
* @param string|string[] $sha1
8181
* @return int|int[]
8282
*/
83-
public function scriptExists($scriptsSha) {
84-
return $this->returnCommand(['SCRIPT', 'EXISTS'], (array) $scriptsSha);
83+
public function scriptExists($sha1) {
84+
return $this->returnCommand(['SCRIPT', 'EXISTS'], (array) $sha1);
8585
}
8686

8787
/**

0 commit comments

Comments
 (0)