Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix dynamodb cache forever method
Convert the expiry to an integer timestamp for comparison
  • Loading branch information
jradtilbrook committed May 26, 2019
commit e9d0f5ecccaffc328dfb2e4b7f1cc132cd64cdf6
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/DynamoDbStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public function decrement($key, $value = 1)
*/
public function forever($key, $value)
{
return $this->put($key, $value, now()->addYears(5));
return $this->put($key, $value, now()->addYears(5)->getTimestamp());
}

/**
Expand Down