Skip to content

Commit a651558

Browse files
Update ttl.php
Fixed expire.
1 parent 46e925d commit a651558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ttl.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if ($_POST['ttl'] == -1) {
1010
$redis->persist($_POST['key']);
1111
} else {
12-
$redis->setTimeout($_POST['key'], $_POST['ttl']);
12+
$redis->expire($_POST['key'], $_POST['ttl']);
1313
}
1414

1515
header('Location: view.php?key='.urlencode($_POST['key']));

0 commit comments

Comments
 (0)