Skip to content

Commit fb549a4

Browse files
committed
Merge pull request ukko#10 from BlueM/master
Missing @return statements
2 parents b46ec3b + ea29c73 commit fb549a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Redis.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ public function psubscribe( $patterns, $callback ) {}
368368
* @param string $channel a channel to publish to
369369
* @param string $message string
370370
* @link http://redis.io/commands/publish
371+
* @return int Number of clients that received the message
371372
* @example $redis->publish('chan-1', 'hello, world!'); // send message.
372373
*/
373374
public function publish( $channel, $message ) {}
@@ -1882,6 +1883,7 @@ public function sort( $key, $option = null ) {}
18821883
* - vm_enabled
18831884
* - role
18841885
* @link http://redis.io/commands/info
1886+
* @return string
18851887
* @example
18861888
* <pre>
18871889
* $redis->info();
@@ -1994,6 +1996,7 @@ public function mget( array $array ) {}
19941996
/**
19951997
* @see mset()
19961998
* @param array $array
1999+
* @return int 1 (if the keys were set) or 0 (no key was set)
19972000
* @link http://redis.io/commands/msetnx
19982001
*/
19992002
public function msetnx( array $array ) {}
@@ -2134,6 +2137,7 @@ public function zRem( $key, $member1, $member2 = null, $memberN = null ) {}
21342137
* @param string $member1
21352138
* @param string $member2
21362139
* @param string $memberN
2140+
* @return int Number of deleted values
21372141
* @link http://redis.io/commands/zrem
21382142
*/
21392143
public function zDelete( $key, $member1, $member2 = null, $memberN = null ) {}

0 commit comments

Comments
 (0)