Skip to content

Commit 9ab35fa

Browse files
author
Simon Effenberg
committed
fix documentation
1 parent b45453d commit 9ab35fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ Sets an expiration date (a timestamp) on an item.
11241124
<pre>
11251125
$redis->set('x', '42');
11261126
$now = time(NULL); // current timestamp
1127-
$redis->setTimeout('x', $now + 3); // x will disappear in 3 seconds.
1127+
$redis->expireAt('x', $now + 3); // x will disappear in 3 seconds.
11281128
sleep(5); // wait 5 seconds
11291129
$redis->get('x'); // will return `FALSE`, as 'x' has expired.
11301130
</pre>

0 commit comments

Comments
 (0)