Skip to content

Commit

Permalink
put off expiration void fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa authored Jan 10, 2024
1 parent 6bebac0 commit 3084dee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TarantoolStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ public function save(Key $key): void

if ($tuple[1] == $this->getUniqueToken($key)) {
$this->checkNotExpired($key);
return true;
return;
}

if ($tuple[2] < microtime(true)) {
$this->delete($key, $tuple[1]);
return $this->save($key);
$this->save($key);
return;
}
}

Expand Down

0 comments on commit 3084dee

Please sign in to comment.