We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf33c9 commit 0d03360Copy full SHA for 0d03360
1 file changed
Handler/RedisHandler.php
@@ -56,11 +56,7 @@ public function read($sessionId): string
56
57
public function write($sessionId, $sessionData): bool
58
{
59
- if ($this->ttl > 0) {
60
- return $this->client->setex($sessionId, $this->ttl, $sessionData);
61
- }
62
-
63
- return $this->client->set($sessionId, $sessionData, $this->ttl);
+ return $this->client->setex($sessionId, $this->ttl, $sessionData);
64
}
65
66
public function open($savePath, $sessionId): bool
0 commit comments