We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e925d commit a651558Copy full SHA for a651558
ttl.php
@@ -9,7 +9,7 @@
9
if ($_POST['ttl'] == -1) {
10
$redis->persist($_POST['key']);
11
} else {
12
- $redis->setTimeout($_POST['key'], $_POST['ttl']);
+ $redis->expire($_POST['key'], $_POST['ttl']);
13
}
14
15
header('Location: view.php?key='.urlencode($_POST['key']));
0 commit comments