We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b45453d commit 9ab35faCopy full SHA for 9ab35fa
README.markdown
@@ -1124,7 +1124,7 @@ Sets an expiration date (a timestamp) on an item.
1124
<pre>
1125
$redis->set('x', '42');
1126
$now = time(NULL); // current timestamp
1127
-$redis->setTimeout('x', $now + 3); // x will disappear in 3 seconds.
+$redis->expireAt('x', $now + 3); // x will disappear in 3 seconds.
1128
sleep(5); // wait 5 seconds
1129
$redis->get('x'); // will return `FALSE`, as 'x' has expired.
1130
</pre>
0 commit comments