Skip to content

Commit

Permalink
Ensure array driver expires values at the expiry time
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Sep 22, 2023
1 parent 86b8928 commit 0c00c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/ArrayStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function get($key)

$expiresAt = $item['expiresAt'] ?? 0;

if ($expiresAt !== 0 && $this->currentTime() > $expiresAt) {
if ($expiresAt !== 0 && $this->currentTime() >= $expiresAt) {
$this->forget($key);

return;
Expand Down

0 comments on commit 0c00c9f

Please sign in to comment.