Skip to content
Snippets Groups Projects
Commit 096162d5 authored by Robert Tefft's avatar Robert Tefft Committed by Thijs Kinkhorst
Browse files

change redis store expire time to duration seconds instead of timestamp

parent da119eff
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,8 @@ class Redis extends Store
if ($expire === null) {
$this->redis->set("{$type}.{$key}", $serialized);
} else {
$this->redis->setex("{$type}.{$key}", $expire, $serialized);
// setex expire time is in seconds (not unix timestamp)
$this->redis->setex("{$type}.{$key}", $expire - time(), $serialized);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment