Skip to content

Commit 57c7a9f

Browse files
authored
Merge pull request ukko#38 from doodoori2/method/echo
implement echo as a method
2 parents e44e92d + 34bf742 commit 57c7a9f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Redis.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* @author Max Kamashev <[email protected]>
55
* @link https://github.com/ukko/phpredis-phpdoc
66
*
7-
* @method echo string $string Sends a string to Redis, which replies with the same string
8-
*
97
* @method eval( $script, $args = array(), $numKeys = 0 )
108
* Evaluate a LUA script serverside
119
* @param string $script
@@ -202,6 +200,15 @@ public function getOption( $name ) {}
202200
*/
203201
public function ping( ) {}
204202

203+
/**
204+
* Echo the given string
205+
*
206+
* @param string $message
207+
* @return string: Returns message.
208+
* @link http://redis.io/commands/echo
209+
*/
210+
public function echo( $message ) {}
211+
205212
/**
206213
* Get the value related to the specified key
207214
*

0 commit comments

Comments
 (0)