Skip to content

Commit 8bb9b90

Browse files
authored
Merge pull request #28618 from jradtilbrook/dynamodb
Fix dynamodb cache forever method
2 parents 9c21900 + e9d0f5e commit 8bb9b90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Cache/DynamoDbStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public function decrement($key, $value = 1)
390390
*/
391391
public function forever($key, $value)
392392
{
393-
return $this->put($key, $value, now()->addYears(5));
393+
return $this->put($key, $value, now()->addYears(5)->getTimestamp());
394394
}
395395

396396
/**

0 commit comments

Comments
 (0)