Permalink
Browse files

Added a few @return annotations

  • Loading branch information...
1 parent b46ec3b commit ea29c7348c652ca5d0b7a3b3bfa9f917141396de @BlueM BlueM committed May 10, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Redis.php
View
@@ -368,6 +368,7 @@ public function psubscribe( $patterns, $callback ) {}
* @param string $channel a channel to publish to
* @param string $message string
* @link http://redis.io/commands/publish
+ * @return int Number of clients that received the message
* @example $redis->publish('chan-1', 'hello, world!'); // send message.
*/
public function publish( $channel, $message ) {}
@@ -1882,6 +1883,7 @@ public function sort( $key, $option = null ) {}
* - vm_enabled
* - role
* @link http://redis.io/commands/info
+ * @return string
* @example
* <pre>
* $redis->info();
@@ -1994,6 +1996,7 @@ public function mget( array $array ) {}
/**
* @see mset()
* @param array $array
+ * @return int 1 (if the keys were set) or 0 (no key was set)
* @link http://redis.io/commands/msetnx
*/
public function msetnx( array $array ) {}
@@ -2134,6 +2137,7 @@ public function zRem( $key, $member1, $member2 = null, $memberN = null ) {}
* @param string $member1
* @param string $member2
* @param string $memberN
+ * @return int Number of deleted values
* @link http://redis.io/commands/zrem
*/
public function zDelete( $key, $member1, $member2 = null, $memberN = null ) {}

0 comments on commit ea29c73

Please sign in to comment.