Skip to content

Commit 794399b

Browse files
committed
Merge pull request ukko#12 from cl--l/master
Fix wrong Redis::set prototype
2 parents 30daf5f + 0027bed commit 794399b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Redis.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ public function get( $key ) {}
187187
*
188188
* @param string $key
189189
* @param string $value
190-
* @param float $timeout Calling setex() is preferred if you want a timeout.
191-
* @return bool: TRUE if the command is successful.
190+
* @param int $ttl Calling setex() is preferred if you want a Time To Live.
191+
* @return bool: If the command is successful return TRUE or 'Redis Socket Buffer' object
192192
* @link http://redis.io/commands/set
193193
* @example $redis->set('key', 'value');
194194
*/
195-
public function set( $key, $value, $timeout = 0.0 ) {}
195+
public function set( $key, $value, $ttl = 0 ) {}
196196

197197
/**
198198
* Set the string value in argument as value of the key, with a time to live.

0 commit comments

Comments
 (0)